MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getCodeFence

Function getCodeFence

src/main/api/routes/captures.ts:265–274  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

263}
264
265function getCodeFence(text: string): string {
266 const matches = text.match(/`{3,}/g)
267 if (!matches) {
268 return '```'
269 }
270
271 const length = Math.max(...matches.map(match => match.length)) + 1
272
273 return '`'.repeat(length)
274}
275
276function getMarkdownFenceLanguage(body: CaptureRequest): string | undefined {
277 const sourceName

Callers 1

createNoteContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected