summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-08 20:03:13 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-08 20:03:13 +0200
commit5c327e249e03ac303e7fef40e2df6c6ef834db66 (patch)
tree44e60f7ed494e1e6452f378620baa4afbc755346 /tests/typ
parentf85e5aac64784deac75950a1307f2ca802ad6765 (diff)
Switch to = for headings once again
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/code/call-wide.typ2
-rw-r--r--tests/typ/code/importable/chap1.typ2
-rw-r--r--tests/typ/code/importable/chap2.typ2
-rw-r--r--tests/typ/code/include.typ2
-rw-r--r--tests/typ/code/let.typ2
-rw-r--r--tests/typ/coma.typ2
-rw-r--r--tests/typ/markup/heading.typ24
7 files changed, 18 insertions, 18 deletions
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"
}