MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / attrs

Function attrs

src/render_html.mjs:87–89  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

85}
86
87function attrs(token) {
88 return token.attrs ? token.attrs.map(([name, val]) => ` ${name}="${escape(String(val))}"`).join("") : ""
89}
90
91let linkedChapter = null
92

Callers 6

fenceFunction · 0.85
paragraph_openFunction · 0.85
heading_openFunction · 0.85
bullet_list_openFunction · 0.85
ordered_list_openFunction · 0.85
meta_figureFunction · 0.85

Calls 1

escapeFunction · 0.70

Tested by

no test coverage detected