@@ -305,9 +305,10 @@ inlineToOrg (Math t str) = do
305305 return $ if t == InlineMath
306306 then "$" <> text str <> "$"
307307 else "$$" <> text str <> "$$"
308−inlineToOrg (RawInline f str) | isRawFormat f =
309− return $ text str
310−inlineToOrg (RawInline _ _) = return empty
308+inlineToOrg (RawInline f@(Format f') str) =
309+ return $ if isRawFormat f
310+ then text str
311+ else "@@" <> text f' <> ":" <> text str <> "@@"
311312inlineToOrg (LineBreak) = return (text "\\\\" <> cr)
312313inlineToOrg Space = return space
313314inlineToOrg SoftBreak = do