MCPcopy
hub / github.com/github/docs / frontmatter

Function frontmatter

lib/frontmatter.js:276–284  ·  view source on GitHub ↗
(markdown, opts = {})

Source from the content-addressed store, hash-verified

274}
275
276function frontmatter(markdown, opts = {}) {
277 const defaults = {
278 schema,
279 validateKeyNames: true,
280 validateKeyOrder: false, // TODO: enable this once we've sorted all the keys. See issue 9658
281 }
282
283 return parse(markdown, Object.assign({}, defaults, opts))
284}
285
286// attach the schema object so it can be `require`d elsewhere.
287frontmatter.schema = schema

Callers 15

next.config.jsFile · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
add-ghec-to-fpt.jsFile · 0.85
mainFunction · 0.85
mainFunction · 0.85
all-products.jsFile · 0.85

Calls 1

parseFunction · 0.50

Tested by

no test coverage detected