All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
16 lines
310 B
JavaScript
16 lines
310 B
JavaScript
module.exports = checkFence
|
|
|
|
function checkFence(context) {
|
|
var marker = context.options.fence || '`'
|
|
|
|
if (marker !== '`' && marker !== '~') {
|
|
throw new Error(
|
|
'Cannot serialize code with `' +
|
|
marker +
|
|
'` for `options.fence`, expected `` ` `` or `~`'
|
|
)
|
|
}
|
|
|
|
return marker
|
|
}
|