diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-07 18:06:27 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-07 18:17:47 +0200 |
| commit | f26526ba75582f24d2bae18a43de3f6622c588ec (patch) | |
| tree | d5faa4a1e8354344a5aae023517a81f8521e5ef7 /tests | |
| parent | 7218892c722ca583297c0ebbda350bdf6f16d3ce (diff) | |
Switch back to hashtags for headings
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/code/call-invalid.png | bin | 2897 -> 2834 bytes | |||
| -rw-r--r-- | tests/ref/markup/heading.png | bin | 5162 -> 5301 bytes | |||
| -rw-r--r-- | tests/typ/code/call-invalid.typ | 4 | ||||
| -rw-r--r-- | tests/typ/code/importable/chap1.typ | 2 | ||||
| -rw-r--r-- | tests/typ/code/importable/chap2.typ | 2 | ||||
| -rw-r--r-- | tests/typ/code/include.typ | 2 | ||||
| -rw-r--r-- | tests/typ/full/coma.typ | 2 | ||||
| -rw-r--r-- | tests/typ/markup/heading.typ | 26 |
8 files changed, 17 insertions, 21 deletions
diff --git a/tests/ref/code/call-invalid.png b/tests/ref/code/call-invalid.png Binary files differindex f2f90f09..e024e6ce 100644 --- a/tests/ref/code/call-invalid.png +++ b/tests/ref/code/call-invalid.png diff --git a/tests/ref/markup/heading.png b/tests/ref/markup/heading.png Binary files differindex 46b5b637..825b4007 100644 --- a/tests/ref/markup/heading.png +++ b/tests/ref/markup/heading.png diff --git a/tests/typ/code/call-invalid.typ b/tests/typ/code/call-invalid.typ index 0ed5246f..a2c43abc 100644 --- a/tests/typ/code/call-invalid.typ +++ b/tests/typ/code/call-invalid.typ @@ -1,10 +1,6 @@ // Test invalid function calls. --- -// Error: 1-2 unexpected invalid token -# - ---- // Error: 7-8 expected expression, found colon #args(:) diff --git a/tests/typ/code/importable/chap1.typ b/tests/typ/code/importable/chap1.typ index 06a4c1a1..a0f38d0d 100644 --- a/tests/typ/code/importable/chap1.typ +++ b/tests/typ/code/importable/chap1.typ @@ -2,7 +2,7 @@ #let name = "Klaus" -== Chapter 1 +## Chapter 1 #name stood in a field of wheat. There was nothing of particular interest about the field #name just casually surveyed for any paths on which the corn would not totally ruin his semi-new outdorsy jacket but then again, most of us spend diff --git a/tests/typ/code/importable/chap2.typ b/tests/typ/code/importable/chap2.typ index d4aedc60..51e116aa 100644 --- a/tests/typ/code/importable/chap2.typ +++ b/tests/typ/code/importable/chap2.typ @@ -2,7 +2,7 @@ #let name = "Klaus" -== Chapter 2 +## Chapter 2 Their motivations, however, were pretty descript, so to speak. #name had not yet conceptualized their consequences, but that should change pretty quickly. #name approached the center of the field and picked up a 4-foot long disk made from diff --git a/tests/typ/code/include.typ b/tests/typ/code/include.typ index 9fd028f9..945a041d 100644 --- a/tests/typ/code/include.typ +++ b/tests/typ/code/include.typ @@ -1,7 +1,7 @@ // Test include statements. --- -= Document +# Document // Include a file #include "importable/chap1.typ" diff --git a/tests/typ/full/coma.typ b/tests/typ/full/coma.typ index 4941fb71..78a703a9 100644 --- a/tests/typ/full/coma.typ +++ b/tests/typ/full/coma.typ @@ -30,7 +30,7 @@ // the parentheses. #align(center)[ // Markdown-like syntax for headings. - ==== 3. Übungsblatt Computerorientierte Mathematik II #v(4mm) + #### 3. Übungsblatt Computerorientierte Mathematik II #v(4mm) *Abgabe: 03.05.2019* (bis 10:10 Uhr in MA 001) #v(4mm) *Alle Antworten sind zu beweisen.* ] diff --git a/tests/typ/markup/heading.typ b/tests/typ/markup/heading.typ index 9bbe3415..56f48bae 100644 --- a/tests/typ/markup/heading.typ +++ b/tests/typ/markup/heading.typ @@ -4,44 +4,44 @@ // Different number of hashtags. // Valid levels. -=1 -===2 -======6 +# 1 +### 2 +###### 6 // Too many hashtags. // Warning: 1-8 should not exceed depth 6 -=======7 +####### 7 --- // Heading continuation over linebreak. // Code blocks continue heading. -= A{ +# A{ "B" } // Function call continues heading. -= #rect[ +# #rect[ A ] B // Without some kind of block, headings end at a line break. -= A +# A B --- // Heading vs. no heading. // Parsed as headings if at start of the context. -/**/ = Ok -{[== Ok]} -#rect[=== Ok] +/**/ # Ok +{[## Ok]} +#rect[### Ok] // Not at the start of the context. -No = heading +No # heading // Escaped. -\= No heading +\# No heading --- // Make small, but double heading. @@ -49,4 +49,4 @@ No = heading // The new heading's argument list doesn't contain `level`. // Error: 1-11 unexpected argument -=== Twice. +### Twice. |
