• I am using the Gutenberg editor with markdown support (though Jetpack plugin)

    When I use markdown syntax for Code block, for example:

    `python
    code here
    `

    Gutenberg does convert it into the SyntaxHighlighter Code block but it fails to recognize it as Python code, so I always have to manually select the language from the code block settings. This seems to be a bug because as per this link it does support the markdown language tags.

    How to resolve this issue?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alex (a11n)

    (@alexsanford1)

    Can you clarify how you are converting Markdown into a SyntaxHighlighter Code block?

    Are you writing your Markdown in a “Markdown” block? It does not seem to be transformable into a SyntaxHighlighter Code block…

    Are you writing your Markdown in a “Code” block? Is there something special you did to make Markdown work in that kind of block? That doesn’t seem to be working for me…

    Thread Starter tahatayyab

    (@tahatayyab)

    I’m using the Jetpack, markdown support. After enabling this option, I just copy/paste the markdown into Gutenberg Editor which neatly converts the markdown tags into relevant Gutenberg blocks, including syntax highlighter code block for all ”’ tags. The problem arises in detecting the code language tags in markdown. For example,
    ”’python
    [code here]
    '''
    does convert into SyntaxHighlighter block but without Python syntax highlighting.

    Thanks for looking into this.

    Plugin Author Alex (a11n)

    (@alexsanford1)

    Thank you for the instructions! I am able to reproduce the issue, and it turns out that it is not related to Jetpack. This happens when pasting Markdown into a regular Block Editor without Jetpack installed.

    I’ve reported the bug in Github: https://github.com/Automattic/syntaxhighlighter/issues/125

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Markdown language tags are not Supported’ is closed to new replies.