Hi,
Has anyone implemented markdown, either directly into a 4.x MVC app or by way of a plugin? I am interested in using a markdown editor and preview (e.g. showdown or pagedown) instead of the current htmleditor.
Many thanks,
Dave.
Printable View
Hi,
Has anyone implemented markdown, either directly into a 4.x MVC app or by way of a plugin? I am interested in using a markdown editor and preview (e.g. showdown or pagedown) instead of the current htmleditor.
Many thanks,
Dave.
I'm using pagedown currently (and CodeMirror 3 for code blocks). Pretty simple
In an MVC app? I imagine it would be pretty simple for per-page rendering, but I'm not sure how to approach it for MVC ...
Don't suppose you have some sample code you'd like to/can share? You would make my day :-)
It is using MVC and the code is for a project so I cannot share.
All you really have to do is something like this after a component is rendered:
Code:component.update(
new Markdown.Converter().makeHtml(markdown)
);
ya that's pretty simple !! thanx:)