h16nning / typora-gitbook-theme

This is a Typora theme is inspired by gitbook.com. Most of the user interface has been overhauled. It contains three variants: two light variants and one dark theme.
GNU General Public License v3.0
305 stars 51 forks source link

small detail when writing the language #3

Closed ghost closed 3 years ago

ghost commented 4 years ago

Congratulations on creating this theme, I really love it. I just found a minute detail issues

macOS Catalina 10.15.7 Typora 0.9.9.35.2

Yuxin-Ren-SZ commented 3 years ago

I'm running it on Win 10.

Have similar issue when trying write a Mermaid graph by using following syntax:

graph TD

A-->B

some other code

It seems that line numer sometimes doesn't show up and the code with covered by the part where originally should be the line number

h16nning commented 3 years ago

Hello, thanks for your feedback. I noticed the second problem too. Weirdly, the layout "fixes itself" once you add 10 or more lines. Now you can even delete these lines again and everything will stay in place. Also if you switch to a different theme and then back to this one, the isssue disappears - at least on my computer. To me it seems like this is some kind of Code Mirror or Typora issue. Similar things can be observed in other themes as well, e.g. Cobalt.

Sadly, I haven't found a way to solve these issues with css yet - the behaviour of these Code Mirror boxes is very inconsistent. But I will continue trying to solve them...