diff --git a/src/Text/Pandoc/Readers/Typst.hs b/src/Text/Pandoc/Readers/Typst.hs index 1096c223e..ff1d40336 100644 --- a/src/Text/Pandoc/Readers/Typst.hs +++ b/src/Text/Pandoc/Readers/Typst.hs @@ -575,9 +575,6 @@ inlineHandlers = M.fromList (if display then B.displayMath else B.math) . writeTeX <$> pMathMany body) ,("pad", \_ _ fields -> -- ignore paddingy getField "body" fields >>= pWithContents pInlines) - ,("block", \_ mbident fields -> - maybe id (\ident -> B.spanWith (ident, [], [])) mbident - <$> (getField "body" fields >>= pWithContents pInlines)) ,("rotate", \_ _ fields -> do body <- getField "body" fields >>= pWithContents pInlines let kvs = case M.lookup "angle" fields of diff --git a/test/command/11814.md b/test/command/11814.md new file mode 100644 index 000000000..728e4c64a --- /dev/null +++ b/test/command/11814.md @@ -0,0 +1,16 @@ +``` +% pandoc -f typst +#block[ +para 1 +] +#block[ +para 2 +] +#block[ +para 3 +] +^D +

para 1

+

para 2

+

para 3

+```