const CustomMarkdown = (md) => { const fence = md.renderer.rules.fence.bind(md.renderer.rules); md.renderer.rules.fence = (tokens, index, options, env, slf) => { const token = tokens[index]; if (token.info.trim() === 'warning') { return `

WARNING

${token.content}}

`; } if (token.info.trim() === 'note') { return `

NOTE

${token.content}}

`; } if (token.info.trim() === 'jison') { return `
jison
${token.content
        .replace(//g, '>')}}
`; } return fence(tokens, index, options, env, slf); }; }; export default CustomMarkdown;