Skip to content

Commit 24db386

Browse files
committed
Make sure NoStarch output still uses \chapter*
1 parent 8240df4 commit 24db386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render_latex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ let renderer = {
9898
paragraph_close() { return "" },
9999

100100
heading_open(token) {
101-
if (token.tag == "h1") return `${/^00/.test(file) || chapter[1] === "hints" ? "\\addchap" : "\\chapter"}{`
101+
if (token.tag == "h1") return `\\${!["hints", "intro"].includes(chapter[1]) ? "chapter" : noStarch ? "chapter*" : "addchap"}{`
102102
if (token.tag == "h2") return `\n\n${id(token)}\\section{`
103103
if (token.tag == "h3") return `\n\n${id(token)}\\subsection{`
104104
if (token.tag == "h4") return `\n\n${id(token)}\\subsubsection{`

0 commit comments

Comments
 (0)