aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Org/Inline.hs
diff options
context:
space:
mode:
authorDimitri Sabadie <dimitri.sabadie@gmail.com>2021-01-03 08:57:47 +0100
committerGitHub <noreply@github.com>2021-01-03 08:57:47 +0100
commit57b10941521d9db808e3892ea9893878065b7c50 (patch)
tree0b2d440f8e7dcae8c3cfa5a9c342e4579e04ca74 /test/Tests/Readers/Org/Inline.hs
parent260aaaacc640cc458259e292c42e15c3d2f34b3f (diff)
downloadpandoc-57b10941521d9db808e3892ea9893878065b7c50.tar.gz
Org reader: mark verbatim code with class "verbatim". (#6998)
* Replace org-mode’s verbatim from code to codeWith. This adds the `"verbatim"` class so that exporters can apply a specific style on it. For instance, it will be possible for HTML to add a CSS rule for code + verbatim class. * Alter test for org-mode’s verbatim change. See previous commit for further detail on the new implementation.
Diffstat (limited to 'test/Tests/Readers/Org/Inline.hs')
-rw-r--r--test/Tests/Readers/Org/Inline.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Tests/Readers/Org/Inline.hs b/test/Tests/Readers/Org/Inline.hs
index 9edd328c3..b5d0caa26 100644
--- a/test/Tests/Readers/Org/Inline.hs
+++ b/test/Tests/Readers/Org/Inline.hs
@@ -56,7 +56,7 @@ tests =
, "Verbatim" =:
"=Robot.rock()=" =?>
- para (code "Robot.rock()")
+ para (codeWith ("", ["verbatim"], []) "Robot.rock()")
, "Code" =:
"~word for word~" =?>
@@ -190,7 +190,7 @@ tests =
])
, "Verbatim text can contain equal signes (=)" =:
"=is_subst = True=" =?>
- para (code "is_subst = True")
+ para (codeWith ("", ["verbatim"], []) "is_subst = True")
, testGroup "Images"
[ "Image" =: