Remove underscore _ as italic markdown

Anyone know how to remove the “_” from the italic markdown ? I’m using it quite often for my notes and I obviously dont want some parts to be italics

You can precede the ‘_’ with ‘’ and markdown won’t consider it simply an underscore.

In ‘Read Mode’ it will render as ‘_’

1 Like

Not writing the underscore at the end of the word does the same thing,
E.g: _test"__" ← this one.
I was looking for a solution in edit mode, but if it’s not possible it’s not the end of the world ty anyways!

You can put the slash (\) in front of each “_”

I’m mostly using obsidian for coding notes and some variable names takes underscore, this solution works well but precedes each of those variable names with slashes which looks odd in edit mode. I guess i’ll use the software as it’s intended to be, switching to the reading mode when i’m done

I’m mostly using obsidian for coding notes and some variable names takes underscore

You should use inline code to mention variable names and other parts of code or verbatim content in text:

Set variable `foo_bar_baz` to 1.

which will render in reading view as

Set variable foo_bar_baz to 1.

1 Like

Oh that could be what I was looking for thanks !

Also note that you can write entire code blocks by “fencing” them like so:

```
code here
and here
```

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.