Git Product home page Git Product logo

Comments (8)

jrblevin avatar jrblevin commented on June 23, 2024

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:

  1. 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.
  2. Do you happen to see see any errors in *Messages* when markdown-mode loads?
  3. 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 invoke M-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.

drivet avatar drivet commented on June 23, 2024

Here's what I did:

  1. 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
  2. I created a README file in my home directory, loaded it in emacs, and ran M-x markdown-mode
  3. 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.
  4. 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.

jrblevin avatar jrblevin commented on June 23, 2024

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.

drivet avatar drivet commented on June 23, 2024

Running M-x markdown-reload-extensions does bring back the syntax colouring, thanks!

from markdown-mode.

jrblevin avatar jrblevin commented on June 23, 2024

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.

ronalde avatar ronalde commented on June 23, 2024

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.

jrblevin avatar jrblevin commented on June 23, 2024

Thanks for your detailed report. I reverted the offending commit while I look for a better approach (related to this issue).

from markdown-mode.

ronalde avatar ronalde commented on June 23, 2024

Thanks for your swift reaction: my issue is fixed!

from markdown-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.