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

Method codespan

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

Source from the content-addressed store, hash-verified

1120 }
1121 }
1122 codespan(e) {
1123 let t = this.rules.inline.code.exec(e);
1124 if (t) {
1125 let n = t[2].replace(this.rules.other.newLineCharGlobal, " "),
1126 s = this.rules.other.nonSpaceChar.test(n),
1127 i =
1128 this.rules.other.startingSpaceChar.test(n) &&
1129 this.rules.other.endingSpaceChar.test(n);
1130 return (
1131 s && i && (n = n.substring(1, n.length - 1)),
1132 { type: "codespan", raw: t[0], text: n }
1133 );
1134 }
1135 }
1136 br(e) {
1137 let t = this.rules.inline.br.exec(e);
1138 if (t) return { type: "br", raw: t[0] };

Callers 2

inlineTokensMethod · 0.80
parseInlineMethod · 0.80

Calls 1

RFunction · 0.85

Tested by

no test coverage detected