@@ -467,6 +467,7 @@ blockToMarkdown' opts b@(RawBlock f str) = do
467467 let renderEmpty = mempty <$ report (BlockNotRendered b)
468468 case () of
469469 _ | plain -> renderEmpty
470+ | isEnabled Ext_raw_attribute opts -> rawAttribBlock
470471 | f `elem` ["markdown", "markdown_github", "markdown_phpextra",
471472 "markdown_mmd", "markdown_strict"] ->
472473 return $ text str <> text "\n"
@@ -484,7 +485,6 @@ blockToMarkdown' opts b@(RawBlock f str) = do
484485 text str <> text "\n"
485486 | isEnabled Ext_raw_attribute opts -> rawAttribBlock
486487 | otherwise -> renderEmpty
487− | isEnabled Ext_raw_attribute opts -> rawAttribBlock
488488 | otherwise -> renderEmpty
489489blockToMarkdown' opts HorizontalRule = do
490490 return $ blankline <> text (replicate (writerColumns opts) '-') <> blankline
@@ -1152,6 +1152,7 @@ inlineToMarkdown opts il@(RawInline f str) = do
11521152 | f `elem` ["markdown", "markdown_github", "markdown_phpextra",
11531153 "markdown_mmd", "markdown_strict"] ->
11541154 return $ text str
1155+ | isEnabled Ext_raw_attribute opts -> rawAttribInline
11551156 | f `elem` ["html", "html5", "html4"] ->
11561157 case () of
11571158 _ | isEnabled Ext_raw_html opts -> return $ text str
@@ -1162,7 +1163,6 @@ inlineToMarkdown opts il@(RawInline f str) = do
11621163 _ | isEnabled Ext_raw_tex opts -> return $ text str
11631164 | isEnabled Ext_raw_attribute opts -> rawAttribInline
11641165 | otherwise -> renderEmpty
1165− | isEnabled Ext_raw_attribute opts -> rawAttribInline
11661166 | otherwise -> renderEmpty
11671167inlineToMarkdown opts (LineBreak) = do
11681168 plain <- asks envPlain