mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Update dependency js-yaml to v4 (#934)
* Update dependency js-yaml to v4 Signed-off-by: Renovate Bot <bot@renovateapp.com> * Replace yaml.safeLoad with yaml.load as its safe now by default Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Update @types/js-yaml Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Regenerate yarn.lock Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Erik Michelson <github@erik.michelson.eu> Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
eb30d3afd1
commit
1b90cc4c6e
4 changed files with 197 additions and 314 deletions
|
@ -20,7 +20,7 @@ export const frontmatterExtract: MarkdownIt.PluginWithOptions<FrontmatterPluginO
|
|||
}
|
||||
frontmatter(markdownIt, (rawMeta: string) => {
|
||||
try {
|
||||
const meta: RawYAMLMetadata = yaml.safeLoad(rawMeta) as RawYAMLMetadata
|
||||
const meta: RawYAMLMetadata = yaml.load(rawMeta) as RawYAMLMetadata
|
||||
options.onYamlError(false)
|
||||
options.onRawMeta(meta)
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue