check-strong.js 313 B

123456789101112131415
  1. module.exports = checkStrong
  2. function checkStrong(context) {
  3. var marker = context.options.strong || '*'
  4. if (marker !== '*' && marker !== '_') {
  5. throw new Error(
  6. 'Cannot serialize strong with `' +
  7. marker +
  8. '` for `options.strong`, expected `*`, or `_`'
  9. )
  10. }
  11. return marker
  12. }