MCPcopy
hub / github.com/github/docs / renderTitle

Method renderTitle

lib/page.js:162–166  ·  view source on GitHub ↗
(context, opts = { preferShort: true })

Source from the content-addressed store, hash-verified

160 }
161
162 async renderTitle(context, opts = { preferShort: true }) {
163 return opts.preferShort && this.shortTitle
164 ? this.renderProp('shortTitle', context, opts)
165 : this.renderProp('title', context, opts)
166 }
167
168 async _render(context) {
169 // use English IDs/anchors for translated headings, so links don't break (see #8572)

Callers 1

processLinkFunction · 0.80

Calls 1

renderPropMethod · 0.95

Tested by

no test coverage detected