aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-05-05 21:57:30 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-05-05 21:57:30 -0700
commit98ee6ca289ad7117b7336a57bcfc6f4b54463f4e (patch)
tree0e965fec088759a4d6b8157f3668cc9e1ad16a31 /src
parent5affa30e8ad8b5c6ce31240ecd271fd4cccab219 (diff)
downloadpandoc-98ee6ca289ad7117b7336a57bcfc6f4b54463f4e.tar.gz
Asciidoc writer: use `` `+...+` `` form for inline code.
The old `` `a__b__c` `` yields emphasis inside code in asciidoc. To get a pure literal code span, use `` `+a__b__c+` ``.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/AsciiDoc.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/AsciiDoc.hs b/src/Text/Pandoc/Writers/AsciiDoc.hs
index 47738e69d..31827fd69 100644
--- a/src/Text/Pandoc/Writers/AsciiDoc.hs
+++ b/src/Text/Pandoc/Writers/AsciiDoc.hs
@@ -436,7 +436,7 @@ inlineToAsciiDoc opts (Quoted qt lst) = do
| isAsciidoctor -> [Str "\"`"] ++ lst ++ [Str "`\""]
| otherwise -> [Str "``"] ++ lst ++ [Str "''"]
inlineToAsciiDoc _ (Code _ str) = return $
- text "`" <> text (escapeStringUsing (backslashEscapes "`") str) <> "`"
+ text "`+" <> text (escapeStringUsing (backslashEscapes "`") str) <> "+`"
inlineToAsciiDoc _ (Str str) = return $ text $ escapeString str
inlineToAsciiDoc _ (Math InlineMath str) = do
isAsciidoctor <- gets asciidoctorVariant