Skip to content

Commit

Permalink
Fix heading styles + Added style test
Browse files Browse the repository at this point in the history
  • Loading branch information
tinger committed May 28, 2024
1 parent d40a09c commit a70d61d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/style.typ
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
block({
if it.numbering != none {
text(fill: theme.colors.primary, counter(heading).display())
[ ]
}
it.body
})
Expand Down
Binary file added tests/complete/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tests/style/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# added by typst-test
Binary file added tests/style/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/style/ref/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/style/ref/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions tests/style/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#import "/src/style.typ"

#show: style.default()

= First Part
#lorem(100)

= Second Part
#lorem(50)

== Section
== Another Section
#lorem(250)

=== Subsection
#lorem(100)

= Third Part
#lorem(250)

0 comments on commit a70d61d

Please sign in to comment.