diff options
-rw-r--r-- | src/Text/Pandoc/Writers/AsciiDoc.hs | 2 | ||||
-rw-r--r-- | test/command/5565.md | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/AsciiDoc.hs b/src/Text/Pandoc/Writers/AsciiDoc.hs index 31827fd69..cf5fec86f 100644 --- a/src/Text/Pandoc/Writers/AsciiDoc.hs +++ b/src/Text/Pandoc/Writers/AsciiDoc.hs @@ -405,6 +405,8 @@ withIntraword p = setIntraword True *> p <* setIntraword False -- | Convert Pandoc inline element to asciidoc. inlineToAsciiDoc :: PandocMonad m => WriterOptions -> Inline -> ADW m Doc +inlineToAsciiDoc opts (Emph [Strong xs]) = + inlineToAsciiDoc opts (Strong [Emph xs]) -- see #5565 inlineToAsciiDoc opts (Emph lst) = do contents <- inlineListToAsciiDoc opts lst isIntraword <- gets intraword diff --git a/test/command/5565.md b/test/command/5565.md new file mode 100644 index 000000000..1459e066d --- /dev/null +++ b/test/command/5565.md @@ -0,0 +1,6 @@ +``` +% pandoc -t asciidoc +***hi*** +^D +*_hi_* +``` |