mystmd
mystmd copied to clipboard
Proposal: markdown-it-htmyst
Hi @rowanc1 as a followup of sorts to https://github.com/executablebooks/markdown-it-docutils/issues/48 and https://github.com/executablebooks/mystjs/issues/181, I'd like to propose adding something like this to mystjs.
It's a first cut at what you said is the "best path".
The code I have so far supports admonitions and prf directives in a rudimentary way. Of course you also need a bit of CSS to see that.
Could we maybe discuss this in a bit more depth? I could find a way to demonstrate it. Right now I can personally confirm it solves the problem of rendering myst directives in e.g. wiki software that currently supports markdown-it... @sneakers-the-rat.
Nice @tavin -- I think I have a sense of where you are going from looking through the code, and happy to include it. It would be helpful to see a small test or readme example to really see where you are going! It is super helpful to have the markdown-it --> html path revived and supported, thanks for your help with that!
@fwkoch @tavin I would be curious on your read if this should be a standalone package or if it belongs with any of the other packages that are already existing?
I suppose we could have an example that revives some minimal css as well, that exists somewhere in the git history.
Nice @tavin -- I think I have a sense of where you are going from looking through the code, and happy to include it. It would be helpful to see a small test or readme example to really see where you are going! It is super helpful to have the
markdown-it --> htmlpath revived and supported, thanks for your help with that!
Sure I can add something like that. I have been traveling lately but I will have some time over the summer.
@fwkoch @tavin I would be curious on your read if this should be a standalone package or if it belongs with any of the other packages that are already existing?
I think I can guess why HTML presentation has been separated from markdown-it-myst but nevertheless I also think at least a usable reference implementation should be part of mystjs next to markdown-it-myst. If it's too hard for people to use... they won't. I was initially excited about using myst markdown for some personal projects but have run into a lot of practical obstacles. This would remove one of them.
Thanks @tavin -- agree with your sentiment, there needs to be a good default html export. We have focused on React heavily at the moment as well as usage through the CLI, so many of these extensibility and package-reuse parts are certainly underbaked. Looking forward to your help/feedback to make it better! Happy travelling - let us know when you want to pick this up again.