mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
Typst reader/writer: use divider() for horizontal rule.
Remove old `horizontalRule` definition from default template. Modify tests to use non-deprecated symbols. Closes #11540.
This commit is contained in:
+11
-11
@@ -1299,7 +1299,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\\cap"
|
||||
, Str "\8192"
|
||||
, Code ( "" , [] , [] ) "sect"
|
||||
, Code ( "" , [] , [] ) "inter"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -1595,7 +1595,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\1488"
|
||||
, Str "\8192"
|
||||
, Code ( "" , [] , [] ) "alef"
|
||||
, Code ( "" , [] , [] ) "aleph"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -3119,7 +3119,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\\partial"
|
||||
, Str "\8192"
|
||||
, Code ( "" , [] , [] ) "diff"
|
||||
, Code ( "" , [] , [] ) "partial"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -3150,7 +3150,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\\oplus"
|
||||
, Str "\8192"
|
||||
, Code ( "" , [] , [] ) "plus.circle"
|
||||
, Code ( "" , [] , [] ) "plus.o"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -3195,7 +3195,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\\ominus"
|
||||
, Str "\8192"
|
||||
, Code ( "" , [] , [] ) "minus.circle"
|
||||
, Code ( "" , [] , [] ) "minus.o"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -3209,8 +3209,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\295"
|
||||
, Str "\8192"
|
||||
, Code
|
||||
( "" , [] , [] ) "planck.reduce"
|
||||
, Code ( "" , [] , [] ) "planck"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -3241,7 +3240,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\\odot"
|
||||
, Str "\8192"
|
||||
, Code ( "" , [] , [] ) "dot.circle"
|
||||
, Code ( "" , [] , [] ) "dot.o"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -3288,7 +3287,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\\otimes"
|
||||
, Str "\8192"
|
||||
, Code ( "" , [] , [] ) "times.circle"
|
||||
, Code ( "" , [] , [] ) "times.o"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -3919,7 +3918,7 @@ Pandoc
|
||||
( "" , [ "box" ] , [] )
|
||||
[ Math InlineMath "\\bigcap"
|
||||
, Str "\8192"
|
||||
, Code ( "" , [] , [] ) "sect.big"
|
||||
, Code ( "" , [] , [] ) "inter.big"
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -3970,7 +3969,8 @@ Pandoc
|
||||
[ Math InlineMath "\\langle\\rangle"
|
||||
, Str "\8192"
|
||||
, Code
|
||||
( "" , [] , [] ) "angle.l angle.r"
|
||||
( "" , [] , [] )
|
||||
"chevron.l chevron.r"
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
+11
-11
@@ -167,13 +167,13 @@ Getting script letters is @unavailable.
|
||||
columns: 3,
|
||||
column-gutter: 1em,
|
||||
cell($union$, `union`), cell($RR$, [`RR`, `bb(R)`]), cell($forall$, `forall`),
|
||||
cell($sect$, `sect`), cell($bb(Z)$, [`ZZ`, `bb(Z)`]), cell($exists$, `exists`),
|
||||
cell($inter$, `inter`), cell($bb(Z)$, [`ZZ`, `bb(Z)`]), cell($exists$, `exists`),
|
||||
cell($subset$, `subset`), cell($bb(Q)$, [`QQ`, `bb(Q)`]), cell($not$, `not`),
|
||||
cell($subset.eq$, `subset.eq`), cell($bb(N)$, [`NN`, `bb(N)`]), cell($or$, `or`),
|
||||
cell($supset$, `supset`), cell($bb(C)$, [`CC`, `bb(C)`]), cell($and$, `and`),
|
||||
cell($supset.eq$, `supset.eq`), cell($diameter$, [`diameter`]), cell($tack.r$, `tack.r`),
|
||||
cell($in$, `in`), cell($nothing$, `nothing`), cell($models$, `models`),
|
||||
cell($in.not$, `in.not`), cell($alef$, `alef`), cell($without$, `without`),
|
||||
cell($in.not$, `in.not`), cell($aleph$, `aleph`), cell($without$, `without`),
|
||||
))
|
||||
|
||||
Negate an operator, as in $subset.not$, with `subset.not`.
|
||||
@@ -257,11 +257,11 @@ Just type them!
|
||||
cell($>>$, [`>>`, `gt.double`]), cell($tilde.equiv.not$, `tilde.equiv.not`), cell($divides$, `divides`),
|
||||
cell($approx$, `approx`), cell($tilde$, `tilde`), cell($divides.not$, `divides.not`),
|
||||
cell($\u{224D}$, [`\u{224D}` @tricky]), cell($tilde.eq$, `tilde.eq`), cell($n!$, `n!`),
|
||||
cell($equiv$, `equiv`), cell($tilde.not$, `tilde.not`), cell($diff$, `diff`),
|
||||
cell($prec$, `prec`), cell($plus.circle$, `plus.circle`), cell($nabla$, `nabla`),
|
||||
cell($prec.eq$, `prec.eq`), cell($minus.circle$, `minus.circle`), cell($planck.reduce$, `planck.reduce`),
|
||||
cell($succ$, `succ`), cell($dot.circle$, `dot.circle`), cell($circle.stroked.tiny$, `circle.stroked.tiny`),
|
||||
cell($succ.eq$, `succ.eq`), cell($times.circle$, `times.circle`), cell($star$, `star`),
|
||||
cell($equiv$, `equiv`), cell($tilde.not$, `tilde.not`), cell($partial$, `partial`),
|
||||
cell($prec$, `prec`), cell($plus.o$, `plus.o`), cell($nabla$, `nabla`),
|
||||
cell($prec.eq$, `prec.eq`), cell($minus.o$, `minus.o`), cell($planck$, `planck`),
|
||||
cell($succ$, `succ`), cell($dot.o$, `dot.o`), cell($circle.stroked.tiny$, `circle.stroked.tiny`),
|
||||
cell($succ.eq$, `succ.eq`), cell($times.o$, `times.o`), cell($star$, `star`),
|
||||
cell($prop$, `prop`), cell($\u{2298}$, [`\u{2298}` @tricky]), cell($sqrt("")$, `sqrt("")`),
|
||||
cell($\u{2250}$, [`\u{2250}` @tricky]), cell($harpoon.tr$, `harpoon.tr`), cell($checkmark$, `checkmark`),
|
||||
))
|
||||
@@ -294,14 +294,14 @@ These do the same.
|
||||
#align(center, table(
|
||||
columns: 3,
|
||||
cell($integral$, `integral`), cell($integral.triple$, `integral.triple`), cell($union.big$, `union.big`),
|
||||
cell($integral.double$, `integral.double`), cell($integral.cont$, `integral.cont`), cell($sect.big$, `sect.big`),
|
||||
cell($integral.double$, `integral.double`), cell($integral.cont$, `integral.cont`), cell($inter.big$, `inter.big`),
|
||||
))
|
||||
|
||||
= Fences
|
||||
#align(center, table(
|
||||
columns: 3,
|
||||
column-gutter: 1.5em,
|
||||
cell($()$, `()`), cell($angle.l angle.r$, `angle.l angle.r`), cell($abs("")$, `abs("")`),
|
||||
cell($()$, `()`), cell($chevron.l chevron.r$, `chevron.l chevron.r`), cell($abs("")$, `abs("")`),
|
||||
cell($[]$, `[]`), cell($floor("")$, `floor("")`), cell($norm("")$, `norm("")`),
|
||||
cell(${}$, `{}`), cell($ceil("")$, `ceil("")`),
|
||||
))
|
||||
@@ -322,7 +322,7 @@ To have them grow with the enclosed formula, also use the `lr` function.
|
||||
#align(center, table(
|
||||
columns: 2,
|
||||
column-gutter: 1em,
|
||||
$ lr(angle.l i, 2^(2^i) angle.r) $,
|
||||
$ lr(chevron.l i, 2^(2^i) chevron.r) $,
|
||||
```
|
||||
lr(angle.l i, 2^(2^i) angle.r)
|
||||
```,
|
||||
@@ -507,4 +507,4 @@ See also the Typst Documentation at #link("https://typst.app/docs").
|
||||
#block(
|
||||
line(length: 100%, stroke: headcolor) +
|
||||
text(headcolor)[johanvx (https://github.com/johanvx) #h(1fr) #date]
|
||||
)
|
||||
)
|
||||
|
||||
+13
-15
@@ -1,5 +1,3 @@
|
||||
#let horizontalrule = line(start: (25%,0%), end: (75%,0%))
|
||||
|
||||
#set terms(hanging-indent: 1.5em)
|
||||
|
||||
#set table(
|
||||
@@ -156,7 +154,7 @@
|
||||
This is a set of tests for pandoc. Most of them are adapted from John Gruber's
|
||||
markdown test suite.
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Headers
|
||||
<headers>
|
||||
@@ -180,7 +178,7 @@ with no blank line
|
||||
<level-2>
|
||||
with no blank line
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Paragraphs
|
||||
<paragraphs>
|
||||
@@ -194,7 +192,7 @@ Here's one with a bullet. \* criminey.
|
||||
|
||||
There should be a hard line break \ here.
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Block Quotes
|
||||
<block-quotes>
|
||||
@@ -233,7 +231,7 @@ This should not be a block quote: 2 \> 1.
|
||||
|
||||
And a following paragraph.
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Code Blocks
|
||||
<code-blocks>
|
||||
@@ -257,7 +255,7 @@ And:
|
||||
These should not be escaped: \$ \\ \> \[ \{
|
||||
```
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Lists
|
||||
<lists>
|
||||
@@ -435,7 +433,7 @@ M.A.~2007
|
||||
|
||||
B. Williams
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Definition Lists
|
||||
<definition-lists>
|
||||
@@ -600,7 +598,7 @@ Code:
|
||||
|
||||
Hr's:
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Inline Markup
|
||||
<inline-markup>
|
||||
@@ -629,7 +627,7 @@ Subscripts: H#sub[2]O, H#sub[23]O, H#sub[many~of~them]O.
|
||||
These should not be superscripts or subscripts, because of the unescaped spaces:
|
||||
a^b c^d, a\~b c\~d.
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Smart quotes, ellipses, dashes
|
||||
<smart-quotes-ellipses-dashes>
|
||||
@@ -650,7 +648,7 @@ Dashes between numbers: 5--7, 255--66, 1987--1999.
|
||||
|
||||
Ellipses…and…and….
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= LaTeX
|
||||
<latex>
|
||||
@@ -674,7 +672,7 @@ These shouldn't be math:
|
||||
|
||||
Here's a LaTeX table:
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Special Characters
|
||||
<special-characters>
|
||||
@@ -728,7 +726,7 @@ Plus: +
|
||||
|
||||
Minus: -
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Links
|
||||
<links>
|
||||
@@ -807,7 +805,7 @@ Auto-links should not occur here: `<http://example.com/>`
|
||||
or here: <http://example.com/>
|
||||
```
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Images
|
||||
<images>
|
||||
@@ -821,7 +819,7 @@ From "Voyage dans la Lune" by Georges Melies (1902):
|
||||
|
||||
Here is a movie #box(image("movie.jpg", alt: "movie")) icon.
|
||||
|
||||
#horizontalrule
|
||||
#divider()
|
||||
|
||||
= Footnotes
|
||||
<footnotes>
|
||||
|
||||
Reference in New Issue
Block a user