JetBrains / markdown

Markdown parser written in kotlin
Apache License 2.0
682 stars 75 forks source link

All URLs starting with file: are parsed into hashtags. . #143

Open jellyterra opened 8 months ago

jellyterra commented 8 months ago

Here is the code that I use to translate Markdown into HTML:

val flavour = CommonMarkFlavourDescriptor()
val parsedTree = MarkdownParser(flavour).buildMarkdownTreeFromString(markdown)
val html = HtmlGenerator(markdown, parsedTree, flavour).generateHtml()

Screenshot_20240107_043230

If it is designed for security, how to bypass it?