Re:Org-Mode Is One of the Most Reasonable Markup Languages t...
by terhechte on Wednesday April 10, 2019 @08:15AM
(#19623849)
And how do I use that when I want to interactively convert org-mode to html in javascript? Like countless pure-javascript markdown libraries allow me to do?
not to mention the security hazards of running emacs with any user input from a website.
Re:Org-Mode Is One of the Most Reasonable Markup Languages t...
by kqr on Wednesday April 10, 2019 @09:58AM
(#19624656)
That you don't – much like you don't get Pandoc Markdown in JavaScript, because Pandoc is not written in JS.
But if you are content with a less featured variation of the markup language (but still more featureful than Markdown), you can get that for JavaScript too: https://xiaoxinghu.github.io/orgajs/syntax
> there's no good way of converting <markup language> to html except by running <preferred converter>. So for each article, getting a html representation requires firing up <preferred converter>. That's insane.