Skip to content

Commit

Permalink
Prototype toml parser upgrade based on a hypothetical version of smol…
Browse files Browse the repository at this point in the history
…-toml that exports CommonJS instead of a Module (refs #469).
  • Loading branch information
DavidAnson committed May 15, 2024
1 parent b948ed9 commit e60c148
Show file tree
Hide file tree
Showing 4 changed files with 1,795 additions and 7,116 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
Loading

0 comments on commit e60c148

Please sign in to comment.