MCPcopy
hub / github.com/webpro/reveal-md / parseYamlFrontMatter

Function parseYamlFrontMatter

lib/util.js:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21});
22
23export const parseYamlFrontMatter = content => {
24 const document = yamlFrontMatter.loadFront(content.replace(/^\uFEFF/, ''));
25 return {
26 yamlOptions: _.omit(document, '__content'),
27 markdown: document.__content || content
28 };
29};
30
31export const getFilePaths = (workingDir, globPattern) => {
32 return globSync(globPattern, {

Callers 3

copyAssetsFromOptionsFunction · 0.90
renderFunction · 0.90
getFileMetaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected