diff --git a/tests/ref/compiler/shorthand.png b/tests/ref/compiler/shorthand.png index 2f1634ca4..719fa771a 100644 Binary files a/tests/ref/compiler/shorthand.png and b/tests/ref/compiler/shorthand.png differ diff --git a/tests/typ/compiler/shorthand.typ b/tests/typ/compiler/shorthand.typ index c8a108519..2b7cb5141 100644 --- a/tests/typ/compiler/shorthand.typ +++ b/tests/typ/compiler/shorthand.typ @@ -1,7 +1,7 @@ // 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 @@ -18,3 +18,44 @@ a~b --- #set text(font: "Roboto") A... vs #"A..." + +--- +// Check all math shorthands +$...$\ +$-$\ +$'$\ +$*$\ +$!=$\ +$:=$\ +$::=$\ +$=:$\ +$<<$\ +$<<<$\ +$>>$\ +$>>>$\ +$<=$\ +$>=$\ +$->$\ +$-->$\ +$|->$\ +$>->$\ +$->>$\ +$<-$\ +$<--$\ +$<-<$\ +$<<-$\ +$<->$\ +$<-->$\ +$~>$\ +$~~>$\ +$<~$\ +$<~~$\ +$=>$\ +$|=>$\ +$==>$\ +$<==$\ +$<=>$\ +$<==>$\ +$[|$\ +$|]$\ +$||$