UNPKG

@discord-user-card/markdown

Version:

A markdown parser for Discord

7 lines 398 B
import { defaultRules, htmlTag, sanitizeText } from "simple-markdown"; import { extendRule } from "../functions/extendRule.js"; export const inlineCode = extendRule({ match: source => defaultRules.inlineCode.match.regex.exec(source), html: node => htmlTag("code", sanitizeText(node.content), { class: "duc_inline_code" }), }, defaultRules.inlineCode); //# sourceMappingURL=inlineCode.js.map