artempyanykh / marksman

Write Markdown with code assist and intelligence in the comfort of your favourite editor.
MIT License
2.04k stars 35 forks source link

Support for Djot #192

Open kmaasrud opened 1 year ago

kmaasrud commented 1 year ago

While I understand that the target of this language server is set pretty explicitly to Markdown, the similarities between it an Djot are many. I suspect that the work required to support Djot is minimal. Links and headers are for example almost entirely the same.

artempyanykh commented 1 year ago

Thanks for raising this @kmaasrud! So, Djot looks like a successor language with some tweaks on top of base Markdown. It should be pretty easy to also include djot file extension into the set of markdown extensions and treat djot files as Markdown files. And as long as you avoid using djot features that are different from markdown (e.g. mult-line ATX headers) you should have a pretty smooth experience.

Otherwise, it'd need either a new parser or tweaks to an existing markdown parser. I'm open to this kind of contributions but personally won't have the time to do it myself.