mirror of https://github.com/mpastell/Weave.jl
Add math support to julia markdown
parent
37787be647
commit
d27ba7879c
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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 }}}
|
||||
|
|
Loading…
Reference in New Issue