Second word of second footnote turns green

Bug discovered by @guysimtheprinter in the Obsidian discord.

Steps to reproduce

  1. Create new note
  2. Copy/paste the following text in:
[Footnote1]: Test
[Footnote2]: Test test test

Expected result

No green text

Actual result


This happens in both Live Preview and Source Mode.




  • Obsidian version: v1.2.5
  • Installer version: v1.1.16
  • Operating system: #1 SMP PREEMPT_DYNAMIC Thu, 13 Apr 2023 16:59:24 +0000 6.2.11-arch1-1
  • Login status: logged in
  • Catalyst license: insider
  • Insider build toggle: on
  • Live preview: on
  • Legacy editor: off
  • Base theme: dark
  • Community theme: none
  • Snippets enabled: 0
  • Restricted mode: on

Additional information

The green text is green because the .cm-string class is getting applied to it.

Since .cm-string is a class for codemirror’s syntax highlighting, I suspect this is an upstream codemirror bug.

The green color goes away if additional text is added to Footnote1 in my example.




is not green, but


is green, but


is not, and nor is

1 Like


1 Like

i noticed my computer doing this too

  • windows 11
  • obsidian 1.4.16
  • 4k screen (windows UI scaling set to 125%)

Had same problem too (2nd word highlighted in green, but not on the 2nd footnote on iPadOS 17.1.2 w/ Obsidian version 1.4.16 (114)

will be fixed in v1.6.0

This is not the format for footnotes. This is the format for reference style links

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