Skip to content
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

Invisible Mermaid diagrams code #57

Open
Mpic opened this issue Jun 22, 2020 · 3 comments
Open

Invisible Mermaid diagrams code #57

Mpic opened this issue Jun 22, 2020 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Mpic
Copy link

Mpic commented Jun 22, 2020

Hello !

I love this theme, but I noticed that it is the only one I know that does not show mermaid code blocks when diagrams are clicked : image

It is supposed to look something like this (here with the Misty Light theme) :
image

If that can help, I saw that the Vue theme also does something funny with mermaid diagrams code :
image

@noatpad
Copy link
Owner

noatpad commented Jun 23, 2020

This one actually has me stumped. Because for some reason it kinda just loads like that, but if you interact with it some way, it displays normally (or somewhat normally, the code sometimes gets obscured behind the line numbers, which is another thing I haven't been able to figure out).

Entering and exiting Source Code Mode, changing themes, & inputting text puts it back to "normal". It definitely looks like the theme is causing it somehow, but I still can't figure out the culprit

@noatpad noatpad added bug Something isn't working help wanted Extra attention is needed labels Jun 23, 2020
@Traveler0014
Copy link

Noticed that there is another bug that may be related to this. If I try to create a new code block starting with

    ```mermaid

then I will see the cursor is just under the line number, the CodeMirror-code element is covered with CodeMirror-gutters.
to fix this display error, I just tap 10 times , till the line number from single-digit changes to '10', and the cursor will back to the right place.
image
image

@Traveler0014
Copy link

I just found if you comment out these code(Around the line 1126~1129 in ursine-polar.css):

.cm-s-inner {
  padding: .25rem;
  border: 1px solid #0000001a !important;
  border-radius: .25rem;
}

All the problems will go away.
Hope it's helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants