mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-19 02:22:09 +08:00
+ Fix non-decimal enumerated lists. + Fix endnotes ending with code blocks. + Improve default template to use a typst template. + Factor out definitions and typst template into partials. + Properly escape backslash and quote inside double quotes. + Update tests.
19 lines
419 B
Plaintext
19 lines
419 B
Plaintext
// Some definitions presupposed by pandoc's typst output.
|
|
#let definition(term, ..defs) = [
|
|
#strong(term) \
|
|
#(defs.pos().join("\n"))
|
|
]
|
|
|
|
#let blockquote(body) = [
|
|
#set text( size: 0.92em )
|
|
#block(inset: (left: 1.5em, top: 0.2em, bottom: 0.2em))[#body]
|
|
]
|
|
|
|
#let horizontalrule = [
|
|
#line(start: (25%,0%), end: (75%,0%))
|
|
]
|
|
|
|
#let endnote(num, contents) = [
|
|
#stack(dir: ltr, spacing: 3pt, super[#num], contents)
|
|
]
|