MCPcopy Index your code
hub / github.com/resend/react-email / addProseMirrorPlugins

Function addProseMirrorPlugins

packages/editor/src/extensions/code-block.tsx:128–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 },
127
128 addProseMirrorPlugins() {
129 return [
130 ...(this.parent?.() || []),
131 PrismPlugin({
132 name: this.name,
133 defaultLanguage: this.options.defaultLanguage,
134 defaultTheme: this.options.defaultTheme,
135 }),
136 ];
137 },
138 }),
139 ({ node, style }) => {
140 const language = node.attrs?.language

Callers

nothing calls this directly

Calls 1

PrismPluginFunction · 0.90

Tested by

no test coverage detected