import type { InlinePlugin } from "../types.ts"; // Allow underscore syntax but don't tell anyone const REGEXP = /(\*|_)(.+?)\1/g; const plugin: InlinePlugin = { type: "emphasis", render: (text: string) => { text = text.replace(REGEXP, (...match) => `${match[2]}`); return text; }, }; export default plugin;