mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
✨ feat: add Mermaid diagram support (#370)
This commit is contained in:
parent
13d305ac1a
commit
a7e78b29ab
25 changed files with 2437 additions and 19 deletions
|
@ -36,7 +36,7 @@ const getTableCode = (block) => {
|
|||
.join('');
|
||||
};
|
||||
|
||||
document.querySelectorAll('pre').forEach((block) => {
|
||||
document.querySelectorAll('pre:not(.mermaid)').forEach((block) => {
|
||||
const copyDiv = document.createElement('div');
|
||||
copyDiv.setAttribute('role', 'button');
|
||||
copyDiv.setAttribute('aria-label', initCopyText);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue