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]

-- 
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/CAPKKYJZz_FnOzRU5%2BRajdApQK0FKy_jB%2BKkUkRvqMCEoFFcDwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to