mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-26 03:03:04 +00:00
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.
15 lines
424 B
TypeScript
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 () => {};
|
|
}
|