JetBrains / markdown

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

GFM Support (PLEASE) #144

Closed aidan-gibson closed 5 months ago

aidan-gibson commented 7 months ago

Have I gone completely mental or is there no way to highlight text? ie ==text to be highlighted==.

aidan-gibson commented 7 months ago

Okay this was a silly issue to open, I see now this is based on Commonmark spec. Maybe move to GFM?? Or better yet, a totally new WYSIWYG solution à la Obsidian/Logseq/Typora? I love using Jetbrains IDEs but this is cringe.

boswelja commented 7 months ago

There is GFM support, via GFMFlavourDescriptor. I also don't see any mention of highlight in the GFM spec https://github.github.com/gfm/

FirstTimeInForever commented 5 months ago

We support GFM via GFMFlavourDescriptor - it can be provided to the parser instance on creation. Indeed, the GFM does not support such elements - you can check this by simply creating a Markdown gist here on GitHub.

If you need support for such feature, you can probably implement it the same way the org.intellij.markdown.flavours.gfm.StrikeThroughDelimiterParser is implemented.