Typst reader: handle inline bodies ending in a parbreak.

E.g. `#strong[
test
]`.  Here we simply skip the final parbreak.

Treat this as a soft break, which will give results similar
to the typst app.
This commit is contained in:
John MacFarlane
2024-05-27 19:46:08 -07:00
parent 2e1f17a09f
commit 372cd1d3b1
3 changed files with 18 additions and 2 deletions
+3 -1
View File
@@ -203,7 +203,8 @@ Pandoc
[ Underline
[ Link
( "" , [] , [] )
[ Strong
[ SoftBreak
, Strong
[ Str "Typst"
, Space
, Str "Math"
@@ -212,6 +213,7 @@ Pandoc
, Space
, Str "Undergrads"
]
, SoftBreak
]
( "https://github.com/johanvx/typst-undergradmath"
, ""