// Showdown extension that replaces words surrounded by singular underscores with tags export const markdownUnderscoreExt = () => { try { if (!canUseNegativeLookbehind()) { console.log('Showdown-underscore extension: Negative lookbehind not supported. Skipping.'); return []; } return [{ type: 'lang', regex: new RegExp('\\b(?$1', }]; } catch (e) { console.error('Error in Showdown-underscore extension:', e); return []; } }; function canUseNegativeLookbehind() { try { new RegExp('(?