MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / heading_close

Function heading_close

src/render_latex.mjs:121–124  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

119 throw new Error("Can't handle heading tag " + token.tag)
120 },
121 heading_close(token) {
122 if (token.tag == "h1") return `}\\label{${chapter[1]}}`
123 return `}`
124 },
125
126 bullet_list_open() { return `\n\n\\begin{itemize}` },
127 bullet_list_close() { return `\n\\end{itemize}` },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected