MCPcopy
hub / github.com/stackblitz/bolt.new / rehypePlugins

Function rehypePlugins

app/utils/markdown.ts:79–87  ·  view source on GitHub ↗
(html: boolean)

Source from the content-addressed store, hash-verified

77}
78
79export function rehypePlugins(html: boolean) {
80 const plugins: PluggableList = [];
81
82 if (html) {
83 plugins.push(rehypeRaw, [rehypeSanitize, rehypeSanitizeOptions]);
84 }
85
86 return plugins;
87}
88
89const limitedMarkdownPlugin: Plugin = () => {
90 return (tree, file) => {

Callers 1

Markdown.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected