Skip to content

Commit 907a7c1

Browse files
committed
Change TOML parser to smol-toml which supports v1.0.0 of the TOML specification (vs. v0.4.0) (fixes #469).
1 parent b948ed9 commit 907a7c1

File tree

4 files changed

+1796
-7117
lines changed

4 files changed

+1796
-7117
lines changed

markdownlint.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ function yamlParse(text) {
3838
}
3939

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

4544
const exitCodes = {

0 commit comments

Comments
 (0)