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