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

Function meta_quote_open

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

Source from the content-addressed store, hash-verified

198 },
199
200 meta_quote_open(token) {
201 if (token.args[0] && token.args[0].chapter) {
202 quote = true
203 if (!noStarch) return `\n\n\\epigraphhead[30]{\n\\epigraph{\\hspace*{-.1cm}\\itshape\`\``
204 return `\\epigraphskip
205\\thispagestyle{empty}
206\\vspace*{\\fill}
207\\begin{center}
208\\begin{minipage}{\\epigraphwidth}
209\\centering
210\\setlength{\\epigraphrule}{0pt}
211\\renewcommand{\\sourceflush}{center}
212\\epigraph{\\centering{\`\``
213 } else {
214 return `\n\n\\begin{quote}`
215 }
216 },
217 meta_quote_close(token) {
218 quote = false
219 let {author, title, chapter, image} = token.args[0] || {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected