diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2018-10-21 20:19:29 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2018-10-21 20:23:10 +0300 |
commit | a98e2b7c42d6ac9062677bf6d76caa3cf854dd9c (patch) | |
tree | e091fca33d4d1e79dc1161c6999db164c531e221 /src/Text/Pandoc/Writers | |
parent | 3ec0b78343c927cedb00eadf057e26bbd61494c2 (diff) | |
download | pandoc-a98e2b7c42d6ac9062677bf6d76caa3cf854dd9c.tar.gz |
Muse writer: use lightweight markup after </em> tag
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/Muse.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Muse.hs b/src/Text/Pandoc/Writers/Muse.hs index 1374cdde3..8571ac402 100644 --- a/src/Text/Pandoc/Writers/Muse.hs +++ b/src/Text/Pandoc/Writers/Muse.hs @@ -548,6 +548,7 @@ inlineToMuse (Emph lst) = do let lst' = normalizeInlineList lst if useTags || null lst' || startsWithSpace lst' || endsWithSpace lst' then do contents <- inlineListToMuse lst' + modify $ \st -> st { stUseTags = False } return $ "<em>" <> contents <> "</em>" else do contents <- local (\env -> env { envInsideAsterisks = True }) $ inlineListToMuse lst' modify $ \st -> st { stUseTags = True } |