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