MCPcopy Create free account
hub / github.com/arctic-cli/interface / strip

Function strip

packages/ui/src/components/markdown.tsx:4–8  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

2import { ComponentProps, createResource, splitProps } from "solid-js"
3
4function strip(text: string): string {
5 const wrappedRe = /^\s*<([A-Za-z]\w*)>\s*([\s\S]*?)\s*<\/\1>\s*$/
6 const match = text.match(wrappedRe)
7 return match ? match[2] : text
8}
9
10export function Markdown(
11 props: ComponentProps<"div"> & {

Callers 1

MarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected