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

Function paragraph_open

src/render_latex.mjs:100–110  ·  view source on GitHub ↗
(token, i, tokens, newlines)

Source from the content-addressed store, hash-verified

98 },
99
100 paragraph_open(token, i, tokens, newlines) {
101 let noIndent = ""
102 if (!noStarch) for (i--; i >= 0; i--) {
103 let prev = tokens[i]
104 if (prev.type == "fence") noIndent = "\\noindent "
105 if (!/^meta_index/.test(prev.type)) break
106 }
107 let nl = paraBreak(newlines)
108 if (quote) { nl = ""; quote = false }
109 return nl + noIndent + id(token)
110 },
111 paragraph_close() { return "" },
112
113 heading_open(token, _i, _t, newlines) {

Callers

nothing calls this directly

Calls 2

paraBreakFunction · 0.85
idFunction · 0.85

Tested by

no test coverage detected