@@ -118,8 +118,8 @@ blockToOrg (Para inlines) = do
118118blockToOrg (RawBlock "html" str) =
119119 return $ blankline $$ "#+BEGIN_HTML" $$
120120 nest 2 (text str) $$ "#+END_HTML" $$ blankline
121−blockToOrg (RawBlock "latex" str) = return $ text str
122−blockToOrg (RawBlock "org" str) = return $ text str
121+blockToOrg (RawBlock f str) | f == "org" || f == "latex" || f == "tex" =
122+ return $ text str
123123blockToOrg (RawBlock _ _) = return empty
124124blockToOrg HorizontalRule = return $ blankline $$ "--------------" $$ blankline
125125blockToOrg (Header level inlines) = do
@@ -260,7 +260,7 @@ inlineToOrg (Math t str) = do
260260 return $ if t == InlineMath
261261 then "$" <> text str <> "$"
262262 else "$$" <> text str <> "$$"
263−inlineToOrg (RawInline "latex" str) = return $ text str
263+inlineToOrg (RawInline f str) | f == "tex" || f == "latex" = return $ text str
264264inlineToOrg (RawInline _ _) = return empty
265265inlineToOrg (LineBreak) = return cr -- there's no line break in Org
266266inlineToOrg Space = return space