@@ -313,7 +313,12 @@ escapeText opts =
313 case cs of
313 case cs of
314 '.':'.':rest -> '\\':'.':'.':'.':go rest
314 '.':'.':rest -> '\\':'.':'.':'.':go rest
315 _ -> '.':go cs
315 _ -> '.':go cs
318+ | isEnabled Ext_intraword_underscores opts
320+ , isAlphaNum x -> c : '_' : x : go xs
316− _ -> c : go cs
321+ _ -> c : go cs
318attrsToMarkdown :: Attr -> Doc Text
323attrsToMarkdown :: Attr -> Doc Text
319attrsToMarkdown attribs = braces $ hsep [attribId, attribClasses, attribKeys]
324attrsToMarkdown attribs = braces $ hsep [attribId, attribClasses, attribKeys]