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

Function meta_quote_close

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

Source from the content-addressed store, hash-verified

215 }
216 },
217 meta_quote_close(token) {
218 quote = false
219 let {author, title, chapter, image} = token.args[0] || {}
220 let attribution = author ? `\n{---${escape(author)}${title ? `, ${escape(title)}` : ""}}` : ""
221 if (!chapter) return `${attribution ? "\n" + attribution : ""}\n\\end{quote}`
222 if (!noStarch) return `''}%${attribution}\n}`
223 return `}}%${attribution}
224${image ? `\\includegraphics[width=\\linewidth]{${image}}` : ''}
225\\end{minipage}
226\\end{center}
227\\vspace*{\\fill}
228\\clearpage
229
230`
231 },
232
233 meta_hint_open() { return "" }, // FIXME filter out entirely
234 meta_hint_close() { return "" }

Callers

nothing calls this directly

Calls 1

escapeFunction · 0.70

Tested by

no test coverage detected