MCPcopy Create free account
hub / github.com/deepnote/deepnote / escapeMarkdown

Function escapeMarkdown

packages/blocks/src/blocks/text-blocks.ts:93–95  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

91}
92
93function escapeMarkdown(text: string): string {
94 return text.replace(/([\\`*_{}[\]()#+\-.!|>])/g, '\\$1')
95}
96
97export function createMarkdownForTextBlock(block: TextBlock): string {
98 const content = block.content ?? ''

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected