Open lethefrost opened 2 years ago
That's a good idea, and I'll try to do it, but the icon might be a little hard to find. The first bug was fixed in 1.0.5. The second bug I have no idea for the moment, but you can use some themes that do not automatically line feed, like Blue Topaz.
That's a good idea, and I'll try to do it, but the icon might be a little hard to find. The first bug was fixed in 1.0.5. The second bug I have no idea for the moment, but you can use some themes that do not automatically line feed, like Blue Topaz.
Hi, thank you @stargrey for your work!
I found this great website to quickly look up the icons (supported by any nerd fonts) https://www.nerdfonts.com/cheat-sheet .
I am wondering for the second bug, if we could just refer to the way how the original editor line number of Obsidian.md work? I believe they handled the line-wrap problem very well.
That's a good idea, and I'll try to do it, but the icon might be a little hard to find. The first bug was fixed in 1.0.5. The second bug I have no idea for the moment, but you can use some themes that do not automatically line feed, like Blue Topaz.
Hi @stargrey , I found that the first bug is not fixed (I have v1.0.6 installed). Instead of bringing the syntax highlighting back in a titled code block, it turns to use the whole line as the language name, without parsing or extracting the :title
section which should be shown in the top left corner.
@lethefrost
Hi @stargrey , I found that the first bug is not fixed (I have v1.0.6 installed). Instead of bringing the syntax highlighting back in a titled code block, it turns to use the whole line as the language name, without parsing or extracting the
:title
section which should be shown in the top left corner.
To solve this problem, I modified the syntax used by the plugin. Check out readme.md
and use the new syntax to add title, in addition to that, you can now add highlighted lines.
@lethefrost
Hi @stargrey , I found that the first bug is not fixed (I have v1.0.6 installed). Instead of bringing the syntax highlighting back in a titled code block, it turns to use the whole line as the language name, without parsing or extracting the
:title
section which should be shown in the top left corner.To solve this problem, I modified the syntax used by the plugin. Check out
readme.md
and use the new syntax to add title, in addition to that, you can now add highlighted lines.
Hi, thank you for the explanation. Sorry for the late reply. It's very cool to have a new feature to highlight some lines of the code block!! I definitely love it. Thanks for the update!
Originally posted by @stargrey in https://github.com/stargrey/obsidian-better-codeblock/issues/4#issuecomment-1144895080
Hi, Thank you for giving this css selector!
I am sorry that I might have not explained it clearly and caused you confusion. I made a screenshot to better describe a use case.
By the way, I just found two more bugs:
language:title
will disable the code block language syntax highlighting in preview mode.:title
following the language indicator (As in the attached screenshot below, in editor mode, the two kinds of title are both highlighted)