Skip to content

Commit

Permalink
fix slash in headings
Browse files Browse the repository at this point in the history
  • Loading branch information
Lypsilonx committed Oct 27, 2024
1 parent 4a9158d commit 3796619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/preview/quick-minutes/1.0.0/quick-minutes.typ
Original file line number Diff line number Diff line change
Expand Up @@ -710,16 +710,16 @@
show heading: it => [
#if (it.body.has("children")) [
#let it-text = it.body.children.map(i => i.text).join()
#if (it-text.contains("/")) [
#if (it-text.match(regex(regex-time-format + "/")) != none) [
#let time = it-text.split("/").at(0)
#let title = it-text.split("/").at(1)
#let title = it-text.split("/").slice(1).join("/\u{200B}")
#timed(time , heading(level: it.level, title))
] else [
#it-text
]
] else if (it.body.text.contains("/")) [
] else if (it.body.text.match(regex(regex-time-format + "/")) != none) [
#let time = it.body.text.split("/").at(0)
#let title = it.body.text.split("/").at(1)
#let title = it.body.text.split("/").slice(1).join("/\u{200B}")
#timed(time , heading(level: it.level, title))
] else if (it.body.text.at(0) == "\u{200B}") [
#if (separator-lines and (it.level == 1 or it.level == 4)) {
Expand Down

0 comments on commit 3796619

Please sign in to comment.