(text: string)
| 2 | import { ComponentProps, createResource, splitProps } from "solid-js" |
| 3 | |
| 4 | function 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 | |
| 10 | export function Markdown( |
| 11 | props: ComponentProps<"div"> & { |