All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
10 lines
233 B
JavaScript
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)
|
|
)
|
|
}
|