mirror of
https://github.com/typst/typst
synced 2025-07-01 17:52:52 +08:00
Add tests for shorthand (#2660)
This commit is contained in:
parent
1f273eb88f
commit
d25e6726e2
Binary file not shown.
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 11 KiB |
@ -1,7 +1,7 @@
|
|||||||
// Test shorthands for unicode codepoints.
|
// Test shorthands for unicode codepoints.
|
||||||
|
|
||||||
---
|
---
|
||||||
The non-breaking~space does work.
|
The non-breaking space~does work, soft-?hypen also does.
|
||||||
|
|
||||||
---
|
---
|
||||||
// Make sure non-breaking and normal space always
|
// Make sure non-breaking and normal space always
|
||||||
@ -18,3 +18,44 @@ a~b
|
|||||||
---
|
---
|
||||||
#set text(font: "Roboto")
|
#set text(font: "Roboto")
|
||||||
A... vs #"A..."
|
A... vs #"A..."
|
||||||
|
|
||||||
|
---
|
||||||
|
// Check all math shorthands
|
||||||
|
$...$\
|
||||||
|
$-$\
|
||||||
|
$'$\
|
||||||
|
$*$\
|
||||||
|
$!=$\
|
||||||
|
$:=$\
|
||||||
|
$::=$\
|
||||||
|
$=:$\
|
||||||
|
$<<$\
|
||||||
|
$<<<$\
|
||||||
|
$>>$\
|
||||||
|
$>>>$\
|
||||||
|
$<=$\
|
||||||
|
$>=$\
|
||||||
|
$->$\
|
||||||
|
$-->$\
|
||||||
|
$|->$\
|
||||||
|
$>->$\
|
||||||
|
$->>$\
|
||||||
|
$<-$\
|
||||||
|
$<--$\
|
||||||
|
$<-<$\
|
||||||
|
$<<-$\
|
||||||
|
$<->$\
|
||||||
|
$<-->$\
|
||||||
|
$~>$\
|
||||||
|
$~~>$\
|
||||||
|
$<~$\
|
||||||
|
$<~~$\
|
||||||
|
$=>$\
|
||||||
|
$|=>$\
|
||||||
|
$==>$\
|
||||||
|
$<==$\
|
||||||
|
$<=>$\
|
||||||
|
$<==>$\
|
||||||
|
$[|$\
|
||||||
|
$|]$\
|
||||||
|
$||$
|
||||||
|
Loading…
x
Reference in New Issue
Block a user