Comments (8)
There have been no major changes to syntax highlighting. I added a variable that lets one customize the internal "support mode" used to optimize syntax highlighting. The default is the same as the Emacs default, so I don't think that should be an issue. I also made some changes to how markdown-mode
behaves when it reads file-local variables. It has been working fine for me, but it's possible something is going wrong there. Can you please do the following:
- Confirm that
markdown-mode
is indeed loading? You should see "Markdown" in the mode line. I only ask because there were some autoload changes since the last release. - Do you happen to see see any errors in
*Messages*
whenmarkdown-mode
loads? - Load Emacs without any local configuration (e.g., using the
--no-init-file
argument). Then create a new file without an extension (e.g.,README
) and manually invokeM-x markdown-mode
? The idea here is that we can bypass anything else that might be interfering and focus on the initial mode loading in isolation.
from markdown-mode.
Here's what I did:
- I moved my .emacs.d/init.el file out of way and restarted emacs. When I start emacs with a --no--init-file, for some reason it can't see markdown-mode
- I created a README file in my home directory, loaded it in emacs, and ran M-x markdown-mode
- I do indeed see a Markdown indicator in the mode line, and I'm able to, for example, bold a piece of selected text from the menu choice.
- BUT I see no syntax colouring for emphasized text, or links
The Messages buffer looks okay:
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Error while loading 50dictionaries-common: Symbol's value as variable is void: debian-aspell-only-dictionary-alist
Loading /etc/emacs/site-start.d/50pylint.el (source)...
Loading pylint...done
Loading /etc/emacs/site-start.d/50pylint.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Quit
Undo!
from markdown-mode.
Thanks for these details. I was able to replicate this myself now and I will look into it more when I can. If you run M-x markdown-reload-extensions
manually in the meantime I think it will enable syntax highlighting for you.
I think this is due to commit 8300a05. Sometimes markdown-reload-extensions
, which sets up the font lock keywords for syntax coloring, was being called twice. I wanted to avoid this, but now it seems that in some cases it isn't being called at all.
from markdown-mode.
Running M-x markdown-reload-extensions
does bring back the syntax colouring, thanks!
from markdown-mode.
I think I have fixed this in commit 86fb0ea. Please give it a try at your convenience and let me know if it fixes the issue.
from markdown-mode.
I'm having the same issue (no syntax highlighting / coloring) with current cf1ed9f on arch running emacs 24.5.1.
Furthermore the M-x markdown-reload-extensions
does not change anything.
Also tried starting emacs ith --no-init-file
, manually loading the library M-x load-library ~/.emacs.d/elisp/markdown-mode/markdown-mode.el
, and starting markdown-mode with M-x markdown-mode
. For the rest the mode works as expected.
No messages at startup.
Regards,
Ronald
from markdown-mode.
Thanks for your detailed report. I reverted the offending commit while I look for a better approach (related to this issue).
from markdown-mode.
Thanks for your swift reaction: my issue is fixed!
from markdown-mode.
Related Issues (20)
- Performance issue on lists of links
- Add support for LaTeX enviroments HOT 1
- Markdown mode leads to heavy input lag HOT 8
- [filelink](does not support spaces in filename) HOT 3
- Caret signs inside math are fontified as Markdown markup
- register yank-media-handler so we can paste images HOT 7
- Should filename links be URI-decoded? HOT 1
- Update MacPorts links in README
- tab in lists items results in invalid list indent itemization
- [Feature Suggestion] markdown-beginning/end-of-line functions
- `move-beginning-of-line` move to wrong position on heading when markdown-hide-markup is enabled HOT 1
- preserve indent-tabs-mode in markdown-edit-code-block HOT 5
- Incorrect table alignment with code block HOT 1
- Markdown hiding for links broken when text surrounded by square brackets
- resurrect emacs-26 support? HOT 2
- Bug: Angle-bracketed URLs in inline code are fontified as links
- "_" character in a variable name turns on underline HOT 1
- Wrong gfm-view-mode syntax highlight if only using *-ts-mode (tree-sitter modes) HOT 1
- v2.6 ERT test failures on wiki-link-rules and wiki-link-search-under-project with Emacs 29.1 HOT 4
- R language isn't included in markdown-gfm-recognized-languages HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-mode.