JavaScript Creole 1.0 Wiki Markup Parser
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits ahead of veged:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Parse/Simple
tests
creole.js
minify buggy latex support May 9, 2010
readme.md

readme.md

Javascript Creole Wiki Engine with Latex Support

Hacked veged/jscreole to support rendering mathematics in Latex notation with MathJax

Creole Syntax Extensions

\( INLINE MATH \)
\[ DISPLAY MODE MATH \]

Example

<div id="wiki"></div>

<script src="mathjax/MathJax.js">
MathJax.Hub.Config({
		jax: ['input/TeX', 'output/HTML-CSS'],
});
</script>
<script src="creole.js">
creole = new Parse.Simple.Creole({
    forIE: document.all,
});
var markup = '= Title\ninline math: \\(\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}\\)\n';
var div = document.getElementById('wiki');
creole.parse(div, markup);
MathJax.Hub.Queue(['Typeset', MathJax.Hub, div]);
</script>