Tag auto-complete is still shown when editing multiline codeblock

Steps to reproduce

In a note:

  1. type

Expected result

Due to the prevalence of # as a character of significance in programming, and the fact that the user is currently editing a multi-line code block, which are almost exclusively used for snippets of code, I would expect nothing particular to happen.

Actual result

The auto-complete fuzzy search dropdown list for existing tags was displayed.


  • Operating system: Windows 10 Pro, Version 1909, OS Build 18363.836
  • Obsidian version: 0.6.7
  • Using custom CSS: No

Additional information


I can see how this is debateably a ‘bug’ and is just a design decision, and that users expect # to mean tag always. But imo the current behavior is incorrect; I was very surprised and thrown off.

Thanks, I can reproduce.

A post was merged into an existing topic: Link and tag autocompletion activate in code blocks and inline code