UNPKG

@discord-user-card/markdown

Version:

A markdown parser for Discord

8 lines 405 B
import { defaultRules, htmlTag, inlineRegex } from "simple-markdown"; import { extendRule } from "../functions/extendRule.js"; const strikeThroughRegex = /^~~([\s\S]+?)~~(?!_)/; export const strikethrough = extendRule({ match: inlineRegex(strikeThroughRegex), html: (node, output, state) => htmlTag("s", output(node.content, state)), }, defaultRules.del); //# sourceMappingURL=strikethrough.js.map