MCPcopy Index your code
hub / github.com/github/docs / processFrontmatter

Function processFrontmatter

tests/content/remove-liquid-statements.js:34–38  ·  view source on GitHub ↗
(contents, file)

Source from the content-addressed store, hash-verified

32
33// process frontmatter
34function processFrontmatter(contents, file) {
35 const { content, data } = matter(contents)
36 removeDeprecatedFrontmatter(file, data.versions, versionToDeprecate, nextOldestVersion)
37 return matter.stringify(content, data, { lineWidth: 10000 })
38}
39
40describe('removing liquid statements only', () => {
41 test('removes liquid statements that specify "greater than version to deprecate"', async () => {

Callers 1

Calls 1

Tested by

no test coverage detected