feat(plugin): render Markdown content with host UI (#7579)

* feat(plugin): expose Markdown content component

* docs(plugin): translate Markdown component reference
This commit is contained in:
Mohamed Boudra
2026-10-21 19:14:17 +07:00
committed by GitHub
parent 1d383519dd
commit 995ad2f878
10 changed files with 76 additions and 4 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import {
} from "@getpaseo/plugin/client";
import { useCallback, useMemo } from "react";
import { Pressable, Text, View } from "react-native";
import { ExternalLink } from "@getpaseo/plugin/client/ui";
import { ExternalLink, Markdown } from "@getpaseo/plugin/client/ui";
import { incrementRpc } from "../shared/increment";
export function contributeClient(client: PluginClientContext) {
@@ -107,7 +107,7 @@ export function ExamplePanel({
return (
<View style={styles.screen}>
<Text style={styles.title}>Workspace plugin panel</Text>
<Markdown>{"## Workspace plugin panel\n\nCall a **daemon RPC** from this panel."}</Markdown>
<ExternalLink href="https://paseo.sh/docs/plugins">Plugin documentation</ExternalLink>
{openBrowser ? (
<Pressable accessibilityRole="button" onPress={handleOpenBrowser} style={styles.button}>