@@ -652,6 +652,7 @@ inline = choice
652652 , pLink
653653 , pImage
654654 , pCode
655+ , pSamp
655656 , pSpan
656657 , pMath False
657658 , pScriptMath
@@ -781,6 +782,14 @@ pImage = do
781782 let kvs = concatMap getAtt ["width", "height", "sizes", "srcset"]
782783 return $ B.imageWith (uid, cls, kvs) (escapeURI url) title (B.text alt)
783784
785+pSamp :: PandocMonad m => TagParser m Inlines
786+pSamp = try $ do
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
792+
784793pCode :: PandocMonad m => TagParser m Inlines
785794pCode = try $ do
786795 (TagOpen open attr') <- pSatisfy $ tagOpen (`elem` ["code","tt"]) (const True)