Skip to content

Commit

Permalink
Change TOML parser to smol-toml which supports v1.0.0 of the TOML spe…
Browse files Browse the repository at this point in the history
…cification (vs. v0.4.0) (fixes #469).
  • Loading branch information
DavidAnson committed May 16, 2024
1 parent b948ed9 commit 907a7c1
Show file tree
Hide file tree
Showing 4 changed files with 1,796 additions and 7,117 deletions.
3 changes: 1 addition & 2 deletions markdownlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ function yamlParse(text) {
}

function tomlParse(text) {
// It is necessary to add the prototype manually because of https://github.com/BinaryMuse/toml-node/issues/55
return require('deep-extend')({}, require('toml').parse(text));
return require('smol-toml').parse(text);
}

const exitCodes = {
Expand Down

0 comments on commit 907a7c1

Please sign in to comment.