markdown/directives/yaml

(constant) module:markdown/directives/yaml

Parse text as YAML by using js-yaml's FAILSAFE_SCHEMA.

Source:
Parameters:
Name Type Description
text String

Target text.

allowLoose boolean

By true, it try to parse loose YAML in defined directives.

Returns:
Type:
Object | false

Return parse result, or false when failed to parse.