Add math support to julia markdown

pull/66/head
Matti Pastell 2016-12-13 20:03:07 +02:00
parent 37787be647
commit d27ba7879c
3 changed files with 12 additions and 2 deletions

View File

@ -4,3 +4,4 @@ JLD
JSON
Highlights
Mustache
Documenter

View File

@ -1,4 +1,4 @@
import Mustache, Highlights
import Mustache, Highlights, Documenter
function format(doc::WeaveDoc)
formatted = AbstractString[]
@ -61,7 +61,8 @@ end
function format_chunk(chunk::DocChunk, formatdict, docformat::JMarkdown2HTML)
m = Base.Markdown.parse(chunk.content)
return Base.Markdown.html(m)
#Base.Markdown.html(m)
return string(Documenter.Writers.HTMLWriter.mdconvert(m))
end

View File

@ -6,6 +6,14 @@
{{{ :header_script }}}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<style type="text/css">
{{{ :themecss }}}
{{{ :highlightcss }}}