This commit is contained in:
15
node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
generated
vendored
Normal file
15
node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = checkBullet
|
||||
|
||||
function checkBullet(context) {
|
||||
var marker = context.options.bullet || '*'
|
||||
|
||||
if (marker !== '*' && marker !== '+' && marker !== '-') {
|
||||
throw new Error(
|
||||
'Cannot serialize items with `' +
|
||||
marker +
|
||||
'` for `options.bullet`, expected `*`, `+`, or `-`'
|
||||
)
|
||||
}
|
||||
|
||||
return marker
|
||||
}
|
||||
Reference in New Issue
Block a user