Disable all forms of markdown typing assistance in codeblocks

Use case or problem

Currently, most of the typing assistance that Obsidian provides do no make sense or actively get in the way when writing within a codeblock. For example, auto-pairing of markdown symbols (like bold), link suggestion [[, tag suggestion #. Also unlinked mention should not be picked up (here).

Proposed solution

All these typing assistance tools should be deactivated while typing within a codeblock.

Notes

This FR is a simplified version of this other FR that asks for type-dependent behavior.

8 Likes

Agree with this completely!

Steps to reproduce

  • Create a new codeblock
  • Write [[ in it and see link suggestions.

In lua multi-line comment syntax is

--[[ Multi-line
comment --]]

Typing that triggers link suggestions.

I would also appreciate this. Bash code blocks keeps trying to change my text in double square brackets such as ‘if [[ $var = “some text” ]]; …. Etc. it’s quite annoying.

Not sure if “me too” posts are welcome here or not, but I would also like to see this happen - either “always”, or have a preference which disables all forms of typing “assistance” within code blocks.

Totally support the addition of this feature. writing bash scripts in codeblocks is just painful with the current typing assistance.