Files
paseo/plugin-examples/markdown-panel/index.client.tsx
T
Mohamed Boudra 970b41cb24 docs(plugins): file panel examples and author reference
Adds the pdf-panel and markdown-panel examples, the File panels section of the plugin
reference, and an e2e spec that installs both examples, opens a PDF in the browser
viewer, and edits Markdown through Paseo's document across the switcher, Source,
autosave and conflicts.
2026-10-19 13:40:04 +02:00

15 lines
424 B
TypeScript

import type { PluginClientContext } from "@getpaseo/plugin/client";
import { RichMarkdownPanel } from "./client/rich-markdown";
export default function contribute(client: PluginClientContext) {
client.addFilePanel({
id: "rich-markdown",
title: "Rich Markdown",
icon: "FileType",
files: { extensions: ["md", "markdown"] },
document: "text",
Component: RichMarkdownPanel,
});
return () => {};
}