enh: mermaid copy content button

This commit is contained in:
Timothy J. Baek
2024-10-11 00:10:00 -07:00
parent ba2df1c33a
commit 63d297756a
3 changed files with 28 additions and 3 deletions

View File

@@ -302,6 +302,7 @@ __builtins__.input = input`);
<SvgPanZoom
className=" border border-gray-50 dark:border-gray-850 rounded-lg max-h-fit overflow-hidden"
svg={mermaidHtml}
content={_token.text}
/>
{:else}
<pre class="mermaid">{code}</pre>