Skip to content

Commit a70d61d

Browse files
committed
Fix heading styles + Added style test
1 parent d40a09c commit a70d61d

File tree

7 files changed

+21
-0
lines changed

7 files changed

+21
-0
lines changed

src/style.typ

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
block({
5959
if it.numbering != none {
6060
text(fill: theme.colors.primary, counter(heading).display())
61+
[ ]
6162
}
6263
it.body
6364
})

tests/complete/ref/1.png

3.75 KB
Loading

tests/style/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# added by typst-test

tests/style/ref/1.png

88.3 KB
Loading

tests/style/ref/2.png

320 KB
Loading

tests/style/ref/3.png

195 KB
Loading

tests/style/test.typ

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#import "/src/style.typ"
2+
3+
#show: style.default()
4+
5+
= First Part
6+
#lorem(100)
7+
8+
= Second Part
9+
#lorem(50)
10+
11+
== Section
12+
== Another Section
13+
#lorem(250)
14+
15+
=== Subsection
16+
#lorem(100)
17+
18+
= Third Part
19+
#lorem(250)

0 commit comments

Comments
 (0)