MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / def

Method def

web/marked.min.js:879–897  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

877 };
878 }
879 def(e) {
880 let t = this.rules.block.def.exec(e);
881 if (t) {
882 let n = t[1]
883 .toLowerCase()
884 .replace(this.rules.other.multipleSpaceGlobal, " "),
885 s = t[2]
886 ? t[2]
887 .replace(this.rules.other.hrefBrackets, "$1")
888 .replace(this.rules.inline.anyPunctuation, "$1")
889 : "",
890 i = t[3]
891 ? t[3]
892 .substring(1, t[3].length - 1)
893 .replace(this.rules.inline.anyPunctuation, "$1")
894 : t[3];
895 return { type: "def", tag: n, raw: t[0], href: s, title: i };
896 }
897 }
898 table(e) {
899 let t = this.rules.block.table.exec(e);
900 if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;

Callers 1

blockTokensMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected