diff options
author | Dimitri Sabadie <dimitri.sabadie@gmail.com> | 2021-01-03 08:57:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 08:57:47 +0100 |
commit | 57b10941521d9db808e3892ea9893878065b7c50 (patch) | |
tree | 0b2d440f8e7dcae8c3cfa5a9c342e4579e04ca74 /test | |
parent | 260aaaacc640cc458259e292c42e15c3d2f34b3f (diff) | |
download | pandoc-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')
-rw-r--r-- | test/Tests/Readers/Org/Inline.hs | 4 |
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" =: |