lib/comment-parser.ts

Functions

parseComment(fileContent)object

Search in file for @vuepress comment

parseVuepressFileHeader(content, file)string

Helper function to get header as structured markdown

parseComment(fileContent) → object

Search in file for @vuepress comment

Kind: global function
Returns: object - object of found frontmatter data

ParamTypeDescription
fileContentstringcontent of given file

parseVuepressFileHeader(content, file) → string

Helper function to get header as structured markdown

Kind: global function
Returns: string - markdown header

ParamTypeDescription
contentstringfile content
fileobjectfile object