[TxMt] MultiMarkdown in TextMate
drdrang at gmail.com
Mon Apr 10 21:41:40 UTC 2006
On Apr 10, 2006, at 3:29 PM, Brad Miller wrote:
> To stay with the Multimarkdown philosophy of converting to xhtml
> and then using style sheets to go to other formats it seems that a
> script in the same vein as TeXdown would be pretty simple.
> 1. Detect that we are doing math either through $$ or `% or
> whatever mechanism.
> 2. wrap the math in a <math> tag
> 3. Write xsl transformations.
> For html + jsMath: insert all the <script> tags at the beginning
> of the template and Just keep the <math> tag around the math
> for LaTeX: you just get rid of the <math> tag and insert the
> math with $ around it.
This is exactly what I do. Most of my writing with equations gets
turned into reports, so it goes the LaTex->PDF route and XHTML is
only a transitional step. I do have a (lately neglected) blog at
www.leancrew.com/mechanics that uses jsMath. The template contains
the <script>s that load and execute jsMath, the individual posts have
the <math> tags after processing by my fork of MultiMarkdown.
More information about the textmate