MeanderingProgrammer / markdown.nvim

Plugin to improve viewing Markdown files in Neovim
MIT License
504 stars 20 forks source link

Support for directive admonition syntax #25

Closed codingluke closed 1 month ago

codingluke commented 1 month ago

Hi @MeanderingProgrammer

It was a very nice surprise to see, that your fantastic plugin is now supporting GHM callouts! Writing in VIM gets better every day :)

I am wondering if it would be possible to also allow the directive syntax used by all major static site generators?

:::note

This is a very important note

:::

Best and THX for your freetime!

MeanderingProgrammer commented 1 month ago

Thank you for the kind words 🙂

I think this might be getting a little out of scope of a markdown rendering plugin. Since the GHM callouts hijack standard markdown syntax I thought it was reasonable, and it ended up working pretty well.

Still I will at least attempt this, but if it feels too unrelated to the rest of the plugin I won't add it.

Since I'm not familiar with this syntax can you provide a reference for me? Also is there a tree sitter parser available?

MeanderingProgrammer commented 1 month ago

Closing for now, feel free to re-open with some details.