Getting math into the blog
<< e=mc^2 >>
when I wanted to render
The implementation of MultiMarkdown in ikiwiki did not support this syntax and could have been the end of the happiness.
mathml directive for ikiwiki
[[!mathml code=" sigma(A) = [(sigma(a_(11)),...,sigma(a_(1n))), (,...,), (sigma(a_(m1)),...,sigma(a_(mn)))] "]]
Get the source
If you want the source as of today it is available in mathml.pm. I
also have a Git
http://gustaf.thorslund.org/src/ikiwiki.git with a
mathml. If you are into using Git you might as well
check out the ikiwiki source and after
gitremotes script checkout the branch
I am currently running Ubuntu Karmic Koala (9.10) with ikiwiki rebuilt from the Lucid Lynx (10.04) source for my blog. With this setup I have to disable scrubbing of the generated html. On my laptop running Lucid Lynx it works fine without disabling scrubbing. Since this is just a blog and directives are not allowed in comments anyway I can live with scrubbing being turned off.
Of the browsers I have triend the output looks good in:
While it looks bad in:
- I had to turn off scrubbing on my Lucid Lynx laptop too. I just had confused myself enough to not realize it.
- I have patched htmlscrubber.pm to not scrub away my MathML output and enabled scrubbing again.