Files
coopgo/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

10 lines
233 B
JavaScript

module.exports = formatHeadingAsSetext
var toString = require('mdast-util-to-string')
function formatHeadingAsSetext(node, context) {
return (
context.options.setext && (!node.depth || node.depth < 3) && toString(node)
)
}