Don't treat hexadecimal numbers as tags

Use case or problem

I you like a color from some css file and enter #00FFFF or some such hex number it is turned into a tag. You have to remember to put it into some “code” block or such. But if you are downloading a page from the browser with markdownload that has a lot of hex numbers, it is a huge pain to clean up…

Proposed solution

Add an option to recognize hexadecimal numbers and not treat as tags.

Current workaround (optional)

make them code blocks

13 Likes

I use obsidian for a lot of music stuff where I need to use # as a sharp sign - very annoying that it makes things a tag, is there any way to override it?

1 Like

why don’t you escape the sharp sign, like this \#

2 Likes

If I am entering one item, yes, that makes sense. But if I have a note created with MarkDownload and it has a lot of these hex numbers it is annoyingly tedious. Yes, I can open in an editor and do a regex replace but why not add this as an option. Lots of web technical material/articles and other tech material has hex numbers in the format that starts with #

1 Like

pshev, I believe WhiteNoise was replying to Jamier about the “sharp” notation.

Here is some precedence in other apps for comparison. Bear supports hex color codes, doesn’t render them as tags, and turns it into a little color preview, which is pretty neat:

screenshot_2022-05-09_04-54-04


@Jamier you’re asking for something quite a lot more complex and completely different, in my opinion. Hexadecimal color format is predictable and standard. How could the Obsidian developers predict the format of your music notation? You should consider a separate feature request, or plugin-idea. And include examples of your notation.

Otherwise, there are 2 music notation plugins already; “Music Sheet Code Blocks”, and “Scales and Chords”. And you’ll notice both of them put their notation inside a code block.

8 Likes

Because I did not know about that - thank you very much!!

I second this. My use case is very specific to me but I think the point has been made (so I won’t elaborate). Generally, I think this would be very handy to have as an option, especially on a file by file basis, say in the frontmatter. I think a plugin for this would be great.

Pound signs (aka #) are overloaded, which implies 2 things:

  1. because there are many different # uses, some kind of mechanism for distinguishing them is in order. Requiring a closing # would be one way, but that train has left the station.
  2. Because some uses, such as html colors, are predictable and easily distinguished, I think it could be done without being obtrusive or interfering with other uses.

Yes, I use Obsidian for web design projects. It would be beneficial to me if I could store all color codes properly in a note.

You could also find this post relevant: