From 5c327e249e03ac303e7fef40e2df6c6ef834db66 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 8 Jul 2021 20:03:13 +0200 Subject: Switch to = for headings once again --- tests/ref/code/let.png | Bin 2231 -> 2245 bytes tests/ref/markup/heading.png | Bin 7446 -> 7328 bytes tests/typ/code/call-wide.typ | 2 +- tests/typ/code/importable/chap1.typ | 2 +- tests/typ/code/importable/chap2.typ | 2 +- tests/typ/code/include.typ | 2 +- tests/typ/code/let.typ | 2 +- tests/typ/coma.typ | 2 +- tests/typ/markup/heading.typ | 24 ++++++++++++------------ 9 files changed, 18 insertions(+), 18 deletions(-) (limited to 'tests') diff --git a/tests/ref/code/let.png b/tests/ref/code/let.png index ae360b6b..e9c00064 100644 Binary files a/tests/ref/code/let.png and b/tests/ref/code/let.png differ diff --git a/tests/ref/markup/heading.png b/tests/ref/markup/heading.png index f69bb887..35a589bd 100644 Binary files a/tests/ref/markup/heading.png and b/tests/ref/markup/heading.png differ diff --git a/tests/typ/code/call-wide.typ b/tests/typ/code/call-wide.typ index 54da540b..996a052d 100644 --- a/tests/typ/code/call-wide.typ +++ b/tests/typ/code/call-wide.typ @@ -7,7 +7,7 @@ --- // Test in heading. -# A #align!(right) B += A #align!(right) B C --- diff --git a/tests/typ/code/importable/chap1.typ b/tests/typ/code/importable/chap1.typ index a0f38d0d..06a4c1a1 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 51e116aa..d4aedc60 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 8080c6e8..166c3945 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/code/let.typ b/tests/typ/code/let.typ index 1a0bb10e..d788a563 100644 --- a/tests/typ/code/let.typ +++ b/tests/typ/code/let.typ @@ -79,6 +79,6 @@ Three // Error: 9 expected expression #let v = -// Should output `= 1`. +// Should output a heading `1`. // Error: 6-9 expected identifier, found string #let "v" = 1 diff --git a/tests/typ/coma.typ b/tests/typ/coma.typ index 5074bd9e..161ac832 100644 --- a/tests/typ/coma.typ +++ b/tests/typ/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 8787d959..e0dbd999 100644 --- a/tests/typ/markup/heading.typ +++ b/tests/typ/markup/heading.typ @@ -4,39 +4,39 @@ // Different number of hashtags. // Valid levels. -# Level 1 -### Level 2 -###### Level 6 += Level 1 +=== Level 2 +====== Level 6 // Too many hashtags. // Warning: 1-8 should not exceed depth 6 -####### Level 7 +======= Level 7 --- // Heading vs. no heading. // Parsed as headings if at start of the context. -/**/ # Level 1 -{[## Level 2]} -#box[### Level 3] +/**/ = Level 1 +{[== Level 2]} +#box[=== Level 3] // Not at the start of the context. -No # heading +No = heading // Escaped. -\# No heading +\= No heading --- // While indented at least as much as the start, the heading continues. -# This += This is indented. -# This += This is not. // Code blocks continue heading. -# A { += A { "B" } -- cgit v1.2.3