This commit is contained in:
9
node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
generated
vendored
Normal file
9
node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user