git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: Parse <q> as Quoted DoubleQuote.
commit204ee87803d75f301a93bf6ac23d664e1d85f672 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 9 Sep 2012, 10:46 (14 years ago) parent9bd371a
1 file changed+4
src/Text/Pandoc/Readers/HTML.hs+4
src/Text/Pandoc/Readers/HTML.hs+4
@@ -271,6 +271,7 @@ pCodeBlock = try $ do
271271inline :: TagParser [Inline]
272272inline = choice
273273 [ pTagText
274+ , pQ
274275 , pEmph
275276 , pStrong
276277 , pSuperscript
@@ -306,6 +307,9 @@ pSelfClosing f g = do
306307 optional $ pSatisfy (tagClose f)
307308 return open
308309
310+pQ :: TagParser [Inline]
311+pQ = pInlinesInTags "q" (Quoted DoubleQuote)
312+
309313pEmph :: TagParser [Inline]
310314pEmph = pInlinesInTags "em" Emph <|> pInlinesInTags "i" Emph
311315