aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/Org.hs8
-rw-r--r--tests/Tests/Readers/Org.hs6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Text/Pandoc/Readers/Org.hs b/src/Text/Pandoc/Readers/Org.hs
index 0e872abf0..7a35e2ca0 100644
--- a/src/Text/Pandoc/Readers/Org.hs
+++ b/src/Text/Pandoc/Readers/Org.hs
@@ -1148,11 +1148,11 @@ strikeout = fmap B.strikeout <$> emphasisBetween '+'
underline :: OrgParser (F Inlines)
underline = fmap B.strong <$> emphasisBetween '_'
-code :: OrgParser (F Inlines)
-code = return . B.code <$> verbatimBetween '='
-
verbatim :: OrgParser (F Inlines)
-verbatim = return . B.rawInline "" <$> verbatimBetween '~'
+verbatim = return . B.code <$> verbatimBetween '='
+
+code :: OrgParser (F Inlines)
+code = return . B.code <$> verbatimBetween '~'
subscript :: OrgParser (F Inlines)
subscript = fmap B.subscript <$> try (char '_' *> subOrSuperExpr)
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index 4ed77887f..f8240ca3d 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -50,13 +50,13 @@ tests =
"+Kill Bill+" =?>
para (strikeout . spcSep $ [ "Kill", "Bill" ])
- , "Code" =:
+ , "Verbatim" =:
"=Robot.rock()=" =?>
para (code "Robot.rock()")
- , "Verbatim" =:
+ , "Code" =:
"~word for word~" =?>
- para (rawInline "" "word for word")
+ para (code "word for word")
, "Math $..$" =:
"$E=mc^2$" =?>