SilentVoid13/Templater

Syntax highlight on desktop causes the leading part of unordered list in table cell to disappear

PlayerMiller109 opened this issue · 1 comments

Plugin information (please complete the following information):

  • OS: Window 11
  • Templater version: 2.7.1
  • Obsidian version: Current and Installer v1.6.7, have tested in SandBox Vault.
  • Templater settings: { Syntax highlight on desktop: on }

Describe the bug
When Syntax highlight on desktop is on, and the text in the table cell where the cursor is located conforms to the unordered list format, the leading part will disappear.

Expected behavior
The unordered lists are displayed normally.

Screenshots

Test Text:

|                  |                    |
| ---------------- | ------------------ |
| - Test<br>- Test | 1. Test<br>2. Test |

Test GIF:

Additional context
In fact, turning this option on renders most markdown decorations when clicking inside a table cell, such as ordered lists and callouts. But they won't disappear like unordered lists, thus making it feel good instead. I say this to show that this is a general situation.

Workaround:

.markdown-rendered table .list-bullet {
  margin-inline-start: -5px;
  &::after {margin-inline-end: -9px;}
}