@@ -652,6 +652,7 @@ inline = choice
656 , pMath False
657 , pMath False
657 , pScriptMath
658 , pScriptMath
@@ -781,6 +782,14 @@ pImage = do
781 let kvs = concatMap getAtt ["width", "height", "sizes", "srcset"]
782 let kvs = concatMap getAtt ["width", "height", "sizes", "srcset"]
782 return $ B.imageWith (uid, cls, kvs) (escapeURI url) title (B.text alt)
783 return $ B.imageWith (uid, cls, kvs) (escapeURI url) title (B.text alt)
785+pSamp :: PandocMonad m => TagParser m Inlines
787+ TagOpen open attr' <- pSatisfy $ tagOpen (=="samp") (const True)
788+ result <- manyTill pAny (pCloses open)
789+ let (ids,cs,kvs) = mkAttr . toStringAttr $ attr'
790+ return . B.codeWith (ids,"sample":cs,kvs) .
791+ unwords . lines . T.unpack . innerText $ result
784pCode :: PandocMonad m => TagParser m Inlines
793pCode :: PandocMonad m => TagParser m Inlines
785pCode = try $ do
794pCode = try $ do
786 (TagOpen open attr') <- pSatisfy $ tagOpen (`elem` ["code","tt"]) (const True)
795 (TagOpen open attr') <- pSatisfy $ tagOpen (`elem` ["code","tt"]) (const True)