Replies: 1 comment 3 replies
-
You can see how your Markdown is parsed into pandoc's AST by outputting to the pandoc test.md -t native You will notice that all your inline HTML is converted to pandoc test.md | pandoc -f html -t typst This yields #figure(
align(center)[#table(
columns: (56%, 43%),
align: (auto,auto,),
table.header([Action], [Erwartetes Result],),
table.hline(),
[Do something special], [Magic \
Other things: \
],
[Do something even more special \
For that do \
], [Even more special magic. \
Other things:],
)]
, kind: table
) I'm not familiar with typst, but I think this looks a little closer to your expected output. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently working on a project where sometimes the incoming data is a mixed bag of Markdown and some HTML sprinkled in-between. While this displays just fine when rendering the Markdown, the conversion strips various elements (
</br>
,<li>
, etc.) that sometimes highly impact the layout of the output.I looked into the discussions and found a few solutions to do the conversion of Markdown with HTML inside, but they were quite specialised. I was wondering, if there's a more generic approach.
Ideally this:
converts to
Beta Was this translation helpful? Give feedback.
All reactions