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

Fix syntax highlighting #153

Open
paulstelian97 opened this issue Jul 8, 2018 · 0 comments
Open

Fix syntax highlighting #153

paulstelian97 opened this issue Jul 8, 2018 · 0 comments

Comments

@paulstelian97
Copy link

paulstelian97 commented Jul 8, 2018

On at least some Markdown processors, the line containing "```" can contain the language, such as:

``` javascript
function code() {yield 5; return null;}
```

Could display as

function code() {yield 5; return null;}

This means that one potential solution to fixing the syntax highlighting is to simply add the "javascript" language specification on the initial "```" line. Please check whether it actually works for your posts already, or if some additional plugin to support the Javascript language is needed.

EDIT: This page already has that fix. You should try to install a syntax highlighting plugin to your Markdown install and check on this page, before making this change. Perhaps highlight.js?

EDIT 2: See this page for how to enable syntax highlighting with Marked.JS.

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

No branches or pull requests

1 participant