Skip to content

adds option for mermaidjs version #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

erik-nilcoast
Copy link

No description provided.

@yusukebe
Copy link
Owner

yusukebe commented Mar 5, 2025

Hi @erik-nilcoast

Thank you for the PR. But this PR introduces removing the copy button, right? It's not good. We want to fix the problem without doing it.

cc: @ShortArrow

@erik-nilcoast
Copy link
Author

@yusukebe I completely agree :). I just wasn't sure if you were up for any changes. I can work on a "real" fix.

repo="yusukebe/gh-markdown-preview"
tag="v1.10.0"
repo="nilcoast/gh-markdown-preview"
tag="master"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be set back as well

@@ -143,25 +143,6 @@
mermaid.run({
querySelector: 'div.highlight-source-mermaid > pre',
});
const copyIcon= `<svg class="copy-icon" aria-hidden="true" fill="none" height="18" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="18" style="color:"currentColor";"><path d="M8 17.929H6c-1.105 0-2-.912-2-2.036V5.036C4 3.91 4.895 3 6 3h8c1.105 0 2 .911 2 2.036v1.866m-6 .17h8c1.105 0 2 .91 2 2.035v10.857C20 21.09 19.105 22 18 22h-8c-1.105 0-2-.911-2-2.036V9.107c0-1.124.895-2.036 2-2.036z"></path></svg>`;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: make this work with the copy/pasta buttons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants