We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8240df4 commit 24db386Copy full SHA for 24db386
src/render_latex.js
@@ -98,7 +98,7 @@ let renderer = {
98
paragraph_close() { return "" },
99
100
heading_open(token) {
101
- if (token.tag == "h1") return `${/^00/.test(file) || chapter[1] === "hints" ? "\\addchap" : "\\chapter"}{`
+ if (token.tag == "h1") return `\\${!["hints", "intro"].includes(chapter[1]) ? "chapter" : noStarch ? "chapter*" : "addchap"}{`
102
if (token.tag == "h2") return `\n\n${id(token)}\\section{`
103
if (token.tag == "h3") return `\n\n${id(token)}\\subsection{`
104
if (token.tag == "h4") return `\n\n${id(token)}\\subsubsection{`
0 commit comments