[BUG] "Insert after" option does not insert content correctly if the line is "Obsidian"
Describe the bug
I am attempting to capture my tasks to a note. In this note, I have three headings, one of which is "Obsidian". I used {{VALUE:Work,Personal,Obsidian}} to create a selection menu so I don't have to remember my headings. When I select the Obsidian option in my menu, it captures to my previous heading, "Personal" instead of "Obsidian". If I change this to something else, like "Test" or "Obsidian1", it works as expected.
To Reproduce Steps to reproduce the behavior:
- Create a new capture, capturing to any file
- Set "Insert after" to a selection menu containing "Obsidian"
- Run the new capture
- The content does not capture as expected.
Expected behavior
The content captures to the "Obsidian" header.
Screenshots
Desktop (please complete the following information):
- OS: Debian 12 (running as a ChromeOS container)
- Browser: Chrome
- Version 1.11.1
Smartphone (please complete the following information):
- Device: Samsung Galaxy A20
- OS: Android 11
- Browser: Iceraven
- Version 1.11.1
Additional context
I am using the Tasks API to have the Add Task modal appear:
return await this.app.plugins.plugins['obsidian-tasks-plugin'].apiV1.createTaskLineModal() + '\n';