Skip to content

Commit

Permalink
revert to used marked@^4 for node v12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Aug 31, 2024
1 parent cdc9b3b commit 5a7ec35
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 18 deletions.
4 changes: 2 additions & 2 deletions helpers/ddata.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ function _identifiers (options) {
})
})
.filter(function (doclet) {
return !doclet.ignore && (state.options.private ? true : doclet.access !== 'private')
})
return !doclet.ignore && (state.options.private ? true : doclet.access !== 'private')
})
}

/**
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Escape special markdown characters
*/
function escape (input) {
if (typeof input !== 'string') return null
return input.replace(/([\*|_])/g, '\\$1')
return input.replace(/([*|_])/g, '\\$1')
}

/**
Expand Down
1 change: 0 additions & 1 deletion lib/dmd-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
function DmdOptions (options = {}) {
const arrayify = require('array-back')
const os = require('os')

/**
* The template the supplied documentation will be rendered into. Use the default or supply your own template for full control over the output.
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"array-back": "^6.2.2",
"cache-point": "^3.0.0",
"common-sequence": "^2.0.2",
"file-set": "^5.2.0",
"file-set": "^5.2.2",
"handlebars": "^4.7.8",
"marked": "^14.1.0",
"marked": "^4.3.0",
"object-get": "^2.1.1",
"reduce-unique": "^2.0.1",
"walk-back": "^5.1.1"
Expand All @@ -50,9 +50,9 @@
},
"standard": {
"ignore": [
"example",
"test/fixture",
"test/overrides"
"test/overrides",
"tmp"
]
}
}
1 change: 0 additions & 1 deletion test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,4 @@ test.set('dmd.async({ noCache }) with custom line endings', async function () {
a.equal(result, '<a name="someclass"></a>\r\n\r\n## someclass\r\nis a class\r\n\r\n')
})


module.exports = { test, only, skip }

0 comments on commit 5a7ec35

Please sign in to comment.