mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-23 16:05:54 +00:00
MediaWiki reader: Support <math> tag.
This commit is contained in:
@@ -39,7 +39,6 @@ _ support internal links http://www.mediawiki.org/wiki/Help:Links
|
||||
_ support external links (partially implemented)
|
||||
_ support images http://www.mediawiki.org/wiki/Help:Images
|
||||
_ support tables http://www.mediawiki.org/wiki/Help:Tables
|
||||
_ support <math> tag for latex math
|
||||
_ raw mediawiki:
|
||||
_ templates or anything in {{}} (can be postprocessed)
|
||||
_ category links
|
||||
@@ -259,6 +258,7 @@ inline = whitespace
|
||||
<|> strikeout
|
||||
<|> subscript
|
||||
<|> superscript
|
||||
<|> math
|
||||
<|> code
|
||||
<|> hask
|
||||
<|> B.singleton <$> charRef
|
||||
@@ -320,6 +320,9 @@ superscript = B.superscript <$> inlinesInTags "sup"
|
||||
subscript :: MWParser Inlines
|
||||
subscript = B.subscript <$> inlinesInTags "sub"
|
||||
|
||||
math :: MWParser Inlines
|
||||
math = B.math <$> charsInTags "math"
|
||||
|
||||
code :: MWParser Inlines
|
||||
code = B.code <$> (charsInTags "code" <|> charsInTags "tt")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user