Steps to reproduce
-
Create a file like:
[test]: https://example.com Foo Bar Bat
-
Observe in source mode.
Expected result
The word “Bar” to be formatted exactly the same as “Foo” and “Bat”.
Actual result
The word “Bar” is highlighted in green (in HTML, it is wrapped in a <span class="cm-string">
).
Environment
- Operating system: Kubuntu 21.04 x86_64
-
Debug info
SYSTEM INFO: Obsidian version: v0.14.5 Installer version: v0.14.5 Operating system: #51-Ubuntu SMP Thu Jan 6 22:14:29 UTC 2022 5.11.0-46-generic Login status: not logged in Insider build toggle: off Live preview: on Legacy editor: off Base theme: dark Community theme: none Snippets enabled: 0 Safe mode: on
Additional information
Here is the prettified HTML:
<div spellcheck="false" autocorrect="on" autocapitalize="on" translate="no" contenteditable="true" class="cm-content" style="tab-size: 4; padding-bottom: 352px;" role="textbox" aria-multiline="true">
<div class="HyperMD-footnote cm-line">
<span class="cm-formatting cm-formatting-link cm-hmd-footnote cm-link" spellcheck="false">[</span>
<span class="cm-hmd-footnote cm-link" spellcheck="false">test</span>
<span class="cm-formatting cm-formatting-link cm-hmd-footnote cm-link" spellcheck="false">]:</span>
<span class="cm-hmd-footnote-url cm-url" spellcheck="false">https://example.com</span>
</div>
<div class="cm-active cm-line">Foo <span class="cm-string"> Bar </span>Bat </div>
<div class="cm-line">
<br>
</div>
</div>
- The issue does not occur if “Bar” is the end of the line.
- The issue does not occur if a blank line is inserted between the two lines.
- The issue still occurs if a line with a single word on is inserted between the two lines, even if that single word is a header.
- The issue still occurs if “Foo Bar Bat” is made into a header.