Edit this topic

Json yaml md file parser

: shell

: content-file-parser

: file-content-store

: /modules/core/content/services/json-yaml-md-file-parser.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/content/services/json-yaml-md-file-parser.js

Globals

jsonYamlMarkdownFileParser

A content file parser that uses .json, .yaml, and .yaml.md files.

parseYamlMarkdown(data)object

Parses a multipart YAML/Markdown document. The YAML part becomes the item, and the Markdown becomes the body part with a Markdown flavor.

jsonYamlMarkdownFileParser

A content file parser that uses .json, .yaml, and .yaml.md files.

parseYamlMarkdown(data) ⇒ object

Parses a multipart YAML/Markdown document. The YAML part becomes the item, and the Markdown becomes the body part with a Markdown flavor.

Returns: object - The parsed content item.

Param Type Description
data string The data to parse.