discord-markdown-parser
Version:
Parse discord-style markdown into an abstract syntax tree.
18 lines (17 loc) • 628 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.twemoji = void 0;
const simple_markdown_1 = __importDefault(require("../../simple-markdown"));
const twemojiRegex_1 = require("../../utils/twemojiRegex");
exports.twemoji = {
order: simple_markdown_1.default.defaultRules.strong.order,
match: (source) => twemojiRegex_1.TwemojiRegex.exec(source),
parse: function (capture) {
return {
name: capture[0],
};
},
};