Skip to content

Support "-" (dash) in name of code block lang #244

Description

Hi @gettalong,

are you going to accept a PR which makes it possible to use a dash in the code block language?

~~~ mermaid-graph
~~~

Maybe it's just this line which needs to be changed to

FENCED_CODEBLOCK_MATCH = /^((~){3,})\s*?(\w+-)?\s*?\n(.*?)^\1\2*\s*?\n/m

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions