This commit is contained in:
14
node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
generated
vendored
Normal file
14
node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = thematicBreak
|
||||
|
||||
var repeat = require('repeat-string')
|
||||
var checkRepeat = require('../util/check-rule-repeat')
|
||||
var checkRule = require('../util/check-rule')
|
||||
|
||||
function thematicBreak(node, parent, context) {
|
||||
var value = repeat(
|
||||
checkRule(context) + (context.options.ruleSpaces ? ' ' : ''),
|
||||
checkRepeat(context)
|
||||
)
|
||||
|
||||
return context.options.ruleSpaces ? value.slice(0, -1) : value
|
||||
}
|
||||
Reference in New Issue
Block a user