Skip to content

Templater syntax highlighting breaks table rendering in Live Preview when <% appears in code spans #1716

@Remilia-Kirisame

Description

@Remilia-Kirisame

Steps to reproduce

  1. Set template folder to Templates/ (or any folder)
  2. Create a note outside that folder
  3. Add this table:
Command Shows
git log --pretty=format:"%h - %an <%ae> - %s" Works fine
git show -s --format="%an <%ae>" <hash> Breaks from here
git blame <file> Also broken
  1. Switch to Live Preview

Expected result

All three rows render as a table in Live Preview, same as in Reading mode.

Actual result

  • Reading mode: ✅ Table renders correctly (screenshot 1)
Image
  • Live Preview (edit mode): ❌ Only the first data row renders. From the second row onward, the table breaks — text appears as raw markdown in a "commented-out" colour, as if the parser has fallen out of table context (screenshot 2)
Image
  • Source mode: ❌ Similar to Live Preview
Image

Environment

  • Obsidian version: 1.12.7
  • OS: macOS 15.7.2
  • Theme: Default / Blue Topaz / AnuPpucin (Tried all)
  • Community plugins: Templater (works find in restricted mode and other plugins)
  • Templater version: 2.18.1

Additional information

The issue seems to be caused by bare angle brackets (like , ) inside backtick code spans within table cells. The Live Preview parser appears to interpret them as HTML tags, which breaks the table rendering.

The first row survives because its <%ae> is enclosed in double quotes ("...<%ae>..."), but the second row's sits outside the quotes and trips the parser.

After testing, turns out that Templater caused this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions