diff options
| author | Ian Wrzesinski <wrzian@umich.edu> | 2024-10-22 00:13:56 -0400 |
|---|---|---|
| committer | Ian Wrzesinski <wrzian@umich.edu> | 2024-11-03 20:28:49 -0500 |
| commit | 26c61be1dc761306ea7f256b73344a22d843b622 (patch) | |
| tree | 1f6be43f446d438e44d7838616e04a38da4d4f0c /tests | |
| parent | 4ce0b069f6478163eed2d2fd1860905bd47a5f46 (diff) | |
15. Convert Markup mode to use newline modes
(And break out Newline info into separate struct)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/suite/model/heading.typ | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/suite/model/heading.typ b/tests/suite/model/heading.typ index 884f203d..d182724c 100644 --- a/tests/suite/model/heading.typ +++ b/tests/suite/model/heading.typ @@ -38,7 +38,7 @@ multiline. --- heading-trailing-whitespace --- // Whether headings contain trailing whitespace with or without comments/labels. // Labels are special cased to immediately end headings in the parser, but also -// have unique whitespace behavior. +// #strike[have unique whitespace behavior] Now their behavior is consistent! #let join(..xs) = xs.pos().join() #let head(h) = heading(depth: 1, h) @@ -49,19 +49,20 @@ multiline. #test(head[h], [= h<a>]) #test(head[h], [= h/**/<b>]) -// Label behaves differently than normal trailing space and comment. -#test(head(join[h][ ]), [= h ]) -#test(head(join[h][ ]), [= h /**/]) +// #strike[Label behaves differently than normal trailing space and comment.] +// Now they behave the same! +#test(join(head[h])[ ], [= h ]) +#test(join(head[h])[ ], [= h /**/]) #test(join(head[h])[ ], [= h <c>]) // Combinations. -#test(head(join[h][ ][ ]), [= h /**/ ]) +#test(join(head[h])[ ][ ], [= h /**/ ]) #test(join(head[h])[ ][ ], [= h <d> ]) -#test(head(join[h][ ]), [= h /**/<e>]) +#test(join(head[h])[ ], [= h /**/<e>]) #test(join(head[h])[ ], [= h/**/ <f>]) -// The first space attaches, but not the second -#test(join(head(join[h][ ]))[ ], [= h /**/ <g>]) +// #strike[The first space attaches, but not the second] Now neither attaches! +#test(join(head(join[h]))[ ][ ], [= h /**/ <g>]) --- heading-leading-whitespace --- // Test that leading whitespace and comments don't matter. |
