Skip to content

Support fenced doc block alternative syntax #696

Open
@ccoVeille

Description

Unless I'm wrong mdsf only supports Markdown fenced block with exactly 3 backticks.

But code can be formatted differently

https://www.markdownguide.org/extended-syntax/#fenced-code-blocks

~~~ can be used

Take a look at this markdown syntax

~~~go
const fooBar = 42
~~~

And how it is rendered

const fooBar = 42

It's not so rare to find some of them in Markdown files.

https://github.com/search?q=%22%7E%7E%7E%22+language%3AMarkdown+&type=code

https://github.com/zeuscsc/dify/blob/11b4e4f19941b2a55b2fea0c512e0ceecaf5476e/build.md?plain=1#L1

Activity

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

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions