diff options
| author | John MacFarlane <[email protected]> | 2024-03-22 22:38:34 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-03-22 22:38:34 -0700 |
| commit | db59b8ed0835078285cab3f5113d22ab5eb21e0f (patch) | |
| tree | ad13bed0b8f3e034f693b215164019f1dfde3fd9 | |
| parent | 354e0fd349031d4935d0dc9d2a541a2141c38004 (diff) | |
Typst writer: put label after Span, not before.
Labels get applied to preceding markup item.
| -rw-r--r-- | src/Text/Pandoc/Writers/Typst.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Typst.hs b/src/Text/Pandoc/Writers/Typst.hs index 245d0ec87..ed884d588 100644 --- a/src/Text/Pandoc/Writers/Typst.hs +++ b/src/Text/Pandoc/Writers/Typst.hs @@ -325,7 +325,7 @@ inlineToTypst inline = SmallCaps inlines -> textstyle "#smallcaps" inlines Span (ident,_,_) inlines -> do let lab = toLabel FreestandingLabel ident - (lab $$) <$> inlinesToTypst inlines + (<> lab) <$> inlinesToTypst inlines Quoted quoteType inlines -> do let q = case quoteType of DoubleQuote -> literal "\"" |
