@@ -467,6 +467,7 @@ blockToMarkdown' opts b@(RawBlock f str) = do
467 let renderEmpty = mempty <$ report (BlockNotRendered b)
467 let renderEmpty = mempty <$ report (BlockNotRendered b)
468 case () of
468 case () of
469 _ | plain -> renderEmpty
469 _ | plain -> renderEmpty
470+ | isEnabled Ext_raw_attribute opts -> rawAttribBlock
470 | f `elem` ["markdown", "markdown_github", "markdown_phpextra",
471 | f `elem` ["markdown", "markdown_github", "markdown_phpextra",
471 "markdown_mmd", "markdown_strict"] ->
472 "markdown_mmd", "markdown_strict"] ->
472 return $ text str <> text "\n"
473 return $ text str <> text "\n"
@@ -484,7 +485,6 @@ blockToMarkdown' opts b@(RawBlock f str) = do
484 text str <> text "\n"
485 text str <> text "\n"
485 | isEnabled Ext_raw_attribute opts -> rawAttribBlock
486 | isEnabled Ext_raw_attribute opts -> rawAttribBlock
486 | otherwise -> renderEmpty
487 | otherwise -> renderEmpty
487− | isEnabled Ext_raw_attribute opts -> rawAttribBlock
488 | otherwise -> renderEmpty
488 | otherwise -> renderEmpty
489blockToMarkdown' opts HorizontalRule = do
489blockToMarkdown' opts HorizontalRule = do
490 return $ blankline <> text (replicate (writerColumns opts) '-') <> blankline
490 return $ blankline <> text (replicate (writerColumns opts) '-') <> blankline
@@ -1152,6 +1152,7 @@ inlineToMarkdown opts il@(RawInline f str) = do
1152 | f `elem` ["markdown", "markdown_github", "markdown_phpextra",
1152 | f `elem` ["markdown", "markdown_github", "markdown_phpextra",
1153 "markdown_mmd", "markdown_strict"] ->
1153 "markdown_mmd", "markdown_strict"] ->
1154 return $ text str
1154 return $ text str
1155+ | isEnabled Ext_raw_attribute opts -> rawAttribInline
1155 | f `elem` ["html", "html5", "html4"] ->
1156 | f `elem` ["html", "html5", "html4"] ->
1156 case () of
1157 case () of
1157 _ | isEnabled Ext_raw_html opts -> return $ text str
1158 _ | isEnabled Ext_raw_html opts -> return $ text str
@@ -1162,7 +1163,6 @@ inlineToMarkdown opts il@(RawInline f str) = do
1162 _ | isEnabled Ext_raw_tex opts -> return $ text str
1163 _ | isEnabled Ext_raw_tex opts -> return $ text str
1163 | isEnabled Ext_raw_attribute opts -> rawAttribInline
1164 | isEnabled Ext_raw_attribute opts -> rawAttribInline
1164 | otherwise -> renderEmpty
1165 | otherwise -> renderEmpty
1165− | isEnabled Ext_raw_attribute opts -> rawAttribInline
1166 | otherwise -> renderEmpty
1166 | otherwise -> renderEmpty
1167inlineToMarkdown opts (LineBreak) = do
1167inlineToMarkdown opts (LineBreak) = do
1168 plain <- asks envPlain
1168 plain <- asks envPlain