Skip to content

Fix syntax highlighting #153

Description

@paulstelian97

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions