Hi Victor
> I've tried a similar approach in > https://github.com/padawanphysicist/tw5-mathdown, but using markdown-it > <https://github.com/markdown-it/markdown-it> as the Markdown parser. Do > you think it would be possible to integrate the plugin to use MathJax as > the LaTeX renderer in browsers where MathML is not available? > I think a parser is the right way to go for handling Markdown. The advantage of packaging the math support as a widget is just so that it can be re-used with different parsers. The trouble with MathJax, as you've probably discovered, is that it's entirely DOM-based, and it wouldn't be possible to, say, use it to generate static math markup on the server. But you could certainly still use it within those limitations, Best wishes Jeremy > > Best, > vct. > > Is there any option to get that into the main tree? >> >> Best, >> Lluis >> >> On Monday, April 6, 2015 at 11:47:40 PM UTC-7, Jeremy Ruston wrote: >>> >>> Hi Radu >>> >>> I'm probably just showing my ignorance here, but is there any chance >>>> this would work if the order in which the parsers act would be swapped? If >>>> the TeXZilla plugin does the correct job for the '$$' delimited blocks >>>> (i.e. produces html output for them while ignoring the rest of the text), >>>> is it possible that the Markdown plugin would just work if applied after >>>> that? >>>> >>> >>> Sadly not. Parsers in TW5 convert a stream of text into a parse tree >>> which is a hierarchical structure that represents the logical structure of >>> the text. The parse tree can't be fed back into another parser because the >>> parser will be expecting text. >>> >>> Best wishes >>> >>> Jeremy. >>> >>> >>> >>> >>>> >>>> Thanks again >>>> Radu >>>> >>>> >>>> On Monday, April 6, 2015 at 10:09:07 PM UTC+2, Jeremy Ruston wrote: >>>>> >>>>> Hi Radu >>>>> >>>>> Are there any solutions of having markdown and LaTeX rendering >>>>>> functional at the same time? >>>>>> >>>>> >>>>> Not at the moment, I'm afraid. It would need some hacking to the >>>>> Markdown parser to make it parse the $$ markers. The Markdown.js parser >>>>> that we use is not particularly actively developed: >>>>> >>>>> https://github.com/evilstreak/markdown-js >>>>> >>>>> We may be better off using a new alternative such as: >>>>> >>>>> https://github.com/chjj/marked >>>>> >>>>> It seems to be superior in a few ways (eg inclusion of "smarty pants" >>>>> quote handling). >>>>> >>>>> Best wishes >>>>> >>>>> Jeremy. >>>>> >>>>> >>>>> >>>>> >>>>>> >>>>>> Thank you >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "TiddlyWiki" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> To post to this group, send email to [email protected]. >>>>>> Visit this group at http://groups.google.com/group/tiddlywiki. >>>>>> To view this discussion on the web visit https://groups.google.com/d/ >>>>>> msgid/tiddlywiki/e6a8e640-5526-4ddb-894d-ec6afd8b4553% >>>>>> 40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/tiddlywiki/e6a8e640-5526-4ddb-894d-ec6afd8b4553%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Jeremy Ruston >>>>> mailto:[email protected] >>>>> >>>> >>> >>> >>> -- >>> Jeremy Ruston >>> mailto:[email protected] >>> >> -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJbNs2aY5EUYxKsEGpUyF7X%2Bw15skgvU45%2BZxxQuLC9oZQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

