+
+
{description}
+{paragraph.children}
; + }, - if (node.children[0].tagName === "img") { - const image = node.children[0] - const blurSupported = image.properties.src.split(".").pop() in ["jpg", "png", "webp", "avif"] - const metastring = image.properties.alt - const alt = metastring?.replace(/ *\{[^)]*\} */g, "") - const isPriority = metastring?.toLowerCase().match('{priority}') - const hasCaption = metastring?.toLowerCase().includes('{caption:') - const caption = metastring?.match(/{caption: (.*?)}/)?.pop() + code({ node, inline, className, children, ...props }) { + const match = /language-(\w+)/.exec(className || ""); - return ( -{paragraph.children}
- }, - code({ node, inline, className, children, ...props }) { - const match = /language-(\w+)/.exec(className || '') - return !inline && match ? ( -
- {children}
-
- )
- }
-}
+ return !inline && match ? (
+
+ {children}
+
+ );
+ },
+};
type MarkdownProps = {
- content: string;
-}
+ content: string;
+};
export const Markdown = ({ content }: MarkdownProps) => {
- return (
- <>
- {intro.para}
+ +
+