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
object
parseComment(fileContent) → Search in file for @vuepress comment
Kind: global function
Returns: object
- object of found frontmatter data
Param | Type | Description |
---|---|---|
fileContent | string | content of given file |
string
parseVuepressFileHeader(content, file) → Helper function to get header as structured markdown
Kind: global function
Returns: string
- markdown header
Param | Type | Description |
---|---|---|
content | string | file content |
file | object | file object |