You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
335 B
15 lines
335 B
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 |
|
}
|
|
|