Closed Branskugel closed 1 month ago
Hi. @Branskugel.
Thank you for open the issue.
Can you tell me what do you mean by highlighting text with hex code
in mkdocs-material?
I understand that you do not want to convert something like '#ff5733' to '#ff5733{: .hash}'
Hi, @ndy2 ! Sure, I mean doing stuff like this
example <span style="background:#ff4d4f">highlighted</span> text
Had to resort to manually convert hex colors to hsl() or rgb(), but it's a bit tedious, obviously. Plus they seem to not work in conjunction with <font>
tag for coloring text itself, but that's on the obsidian (or perhaps my fault) side
That is a good request! I will fix it within this weekend.
v1.4.1 released with an improvement - #48/ Exclude HTML from being converted in Markdown
Above example is tested in my local environment.
Instead of targeting tag conversion
with span
tag, I think plugin needs to Exclude all HTML from being converted
.
But the implementation has a little limitation. see #49
Tags conversion feature replaces hash symbol at the beginning of any color hex code making it impossible to use colors for e.g. highlighting text. Using escape symbol does not help, because the hex code stops working