Replies: 4 comments 7 replies
-
I've been using a custom writer for Typst output, and currently it will behave as follows with this input: markdown:
Typst:
Of course this relies on the necessary functions being defined on the Typst side, and I've used definitions such as those shown below. I took this approach after some discussion here (or
|
Beta Was this translation helpful? Give feedback.
-
No, I've never needed to read Typst source. This is a lua custom writer. I haven't modified pandoc itself. |
Beta Was this translation helpful? Give feedback.
-
This new addition to Pandoc 3.2 is also relevant, works natively with new https://github.com/jgm/pandoc/blob/main/doc/typst-property-output.md |
Beta Was this translation helpful? Give feedback.
-
I've extended the Typst reader and writer to support a Now ::: warning
This is a warning.
::: is equivalent to #block(class: "warning")[This is a warning] This is not officially supported by Typst currently. Maybe it will, maybe it won't. See also typst/typst#721. |
Beta Was this translation helpful? Give feedback.
-
Currently the Typst reader and writer do not support fenced divs and spans. Simplest solution to this, would be the block command taking a
class
parameter. (See also this Typst issue.) However, as this is not natively supported by Typst, it's hard to justify such an addition from Pandoc's side. The Typst compiler would complain about theclass
parameter not being defined.I'd like to convert a Typst source to Html with the option to style parts of the resulting document with Css afterwards. Would there be another way to emulate
class
attributes within Pandoc? Maybe using filters?Another idea that comes to mind is generating and interpreting a special command, let's call it
annotate
for now, containing class information. I.e. something like thiswould be equivalent to
#annotate("warning")[This is a warning]
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions