stargrey / obsidian-better-codeblock

Add title, line number to Obsidian code block
MIT License
109 stars 10 forks source link

Fix request: code line number goes wrong then single line is too long #8

Closed Maxlinn closed 2 years ago

Maxlinn commented 2 years ago

Hi there, thanks for introducing this plugin!

Recently i discover that, when a single line of code is too long, obsidian will display it into two or more lines, but logically they belong to one line of markdown(line number of obsidian proves that).

However, this plugin will not skip the overflow content, instead, it will continue to label line number, casuing the line number goes wrong.

I intentionally squeeze the width of obsidian to make it more obvious. image

Sincerely thanks if you could look into it : )

stargrey commented 2 years ago

抱歉久等了,现在这个问题应该解决了,不过有时候会出现显示错误,切换下预览模式或者重新打开文件就好

Maxlinn commented 2 years ago

sincerely appreciate your effort! sorry for the late reply ;)