/** * @typedef {import('../types.js').Context} Context * @typedef {import('../types.js').Options} Options */ /** * @param {Context} context * @returns {Exclude} */ export function checkEmphasis(context) { const marker = context.options.emphasis || '*' if (marker !== '*' && marker !== '_') { throw new Error( 'Cannot serialize emphasis with `' + marker + '` for `options.emphasis`, expected `*`, or `_`' ) } return marker }