(`mdwn_itex.patch` against Jason's version).
* Patch your ikiwiki [templates][] to use a `DOCTYPE` supporting
MathML (`mdwn_itex-templates.patch`).
-* Create a script wrapping `itex2MML` for escaping UTF-8 (which may
- confuse the Markdown engine):
-
- #!/bin/sh
-
- # convert all output to numbered entities
- /usr/bin/itex2MML "${@}" | perl -e 'use MathML::Entities; print name2numbered($_) while(<>);' | python -c 'import sys; sys.stdout.write(unicode(sys.stdin.read(), encoding="utf-8").encode("ascii", "xmlcharrefreplace"))'
-
+* Create a script wrapping `itex2MML` for escaping UTF-8 and named
+ entities (e.g. [[itex2MML.sh]]).
* Add config options along the lines of:
# plugins to add to the default configuration
--- /dev/null
+#!/bin/sh
+#
+# wrap itex2MML, converting named-enities and UTF-8 to numbered entities.
+
+/usr/bin/itex2MML "${@}" | perl -e 'use MathML::Entities; print name2numbered($_) while(<>);' | python -c 'import sys; sys.stdout.write(unicode(sys.stdin.read(), encoding="utf-8").encode("ascii", "xmlcharrefreplace"))'