DEV Community

Discussion on: Introducing mmarkdown

Collapse
 
moopet profile image
Ben Sinclair

I can't imagine many uses for this, because one of the main draws of markdown is that it's human-readable and can be displayed by dumb services.

You could conceivably use it as your page content in a CMS, but I don't really like the idea of mixing logic with editable content.

Collapse
 
albinotonnina profile image
Albino Tonnina

Hello Ben,
I do not image many uses of this as well, although this is a good one I think: github.com/MicheleBertoli/css-in-js

To mitigate the feeling of working with content and logic I introduced the 'scripts' option in the mmarkdown config. The logic would happen there, the mmd fenced block in the markdown would just output something, or do some operations on the final output, such as a loop generating the relevant markdown.