Skip to content

Commit

Permalink
* Added support for inline math
Browse files Browse the repository at this point in the history
* Added support for gladtex math
  • Loading branch information
aksdb committed Feb 5, 2016
1 parent 9a35242 commit b38cb97
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pandoc-xhtml.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

\startxmlsetups xml:pandoc
\xmlsetsetup{\xmldocument}
{html|body|div|h1|h2|h3|h4|h5|h6|p|blockquote|span|em|q|b|strong|a|ul|ol|li|dl|dt|dd|hr|br|sup|sub|code|img}
{html|body|div|h1|h2|h3|h4|h5|h6|p|blockquote|span|em|q|b|strong|a|ul|ol|li|dl|dt|dd|hr|br|sup|sub|code|img|EQ}
{xml:*}

\xmlsetsetup{\xmldocument}
Expand Down Expand Up @@ -223,6 +223,14 @@
{div[contains(@class,'figure')]/p[@class='caption']}
{}

\xmlsetsetup{\xmldocument}
{span[@class='math inline']}
{xml:math:inline}

\xmlsetsetup{\xmldocument}
{EQ[@ENV='math']}
{xml:math:eq}

\stopxmlsetups

\xmlregistersetup{xml:pandoc}
Expand Down Expand Up @@ -843,6 +851,14 @@
}
\stopxmlsetups

\startxmlsetups xml:math:inline
\xmlflushcontext{#1}
\stopxmlsetups

\startxmlsetups xml:math:eq
\math{\xmlflushcontext{#1}}
\stopxmlsetups

%%%%%%%%%% Necessary setups for pandoc-xhtml to work
\definesectionblock
[whatcomesfirst]
Expand Down

0 comments on commit b38cb97

Please sign in to comment.