MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / escapeForMdx

Function escapeForMdx

scripts/draft-changelog.ts:446–453  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

444}
445
446export function escapeForMdx(text: string) {
447 return text
448 .replace(/\\/g, "\\\\")
449 .replace(/</g, "\\<")
450 .replace(/>/g, "\\>")
451 .replace(/\{/g, "\\{")
452 .replace(/\}/g, "\\}");
453}
454
455function writeReleaseNotes(version: string, releaseNotes: string, force: boolean) {
456 const releasesDir = join(ROOT, "releases");

Callers 3

renderMdxWeeklyBulletFunction · 0.90
renderMdxCommitBulletFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected