Syntax Highlighting with Markdown doesn’t work
-
Hello all,
As mentioned in the following articles https://en.support.wordpress.com/markdown-quick-reference/ ,markdown code block with language tag should highlight the syntax according to the provided language tag but it seems that it is not working.
Anyone with more information on this?
-
Hi – Please send along a link to the post or page where you’re working. That way we can take a closer look.
Have you tried using a different browser or disabling browser extensions too?
-
I had to add highlight.js stylesheet and script into the page to make it work. Otherwise, it doesn’t highlight.
-
For what site is this?
Adding that is not possible on WordPress.com, so it sounds like you’re using the open source version of WordPress at another host instead.
Syntax highlighting for code using markdown is a separate feature built into WordPress.com, and not part of Jetpack’s markdown, assuming you’re referring to one of the Jetpack sites in your account. To have that syntax highlighting on one of your Jetpack sites, you need to install the Syntax Highlighter plugin as well:
- The topic ‘Syntax Highlighting with Markdown doesn’t work’ is closed to new replies.