Skip to content

Preview issue with thematic breaks within code fences. #1984

Description

@tlrand

Description

--- inside a fenced code block renders as an <HR> tag in preview.

This is true for any of the markdown conventions that create HRs, called "thematic breaks" in the specs.

To Reproduce

This is trivial to reproduce.

  1. Create a note containing a fenced code block with a --- line on its own inside it (e.g. a YAML document separator or a diff).
  2. Toggle preview (⌘/).

Actual: the preview renders an <hr> at that point; the code block is disrupted. The editor renders correctly, so editor and preview disagree.

Expected behavior

Expected: the --- line appears verbatim inside the code block, as it does in the editor.

Actual: the preview renders an <hr> at that point; the code block is disrupted. The editor renders correctly, so editor and preview disagree.

FSNotes version

Version 7.3.1 (715)

macOS/iOS version

Tahoe 26.6 (25G72)

Additional context

Not critical obviously, but points at some gaps between the editor view and preview that may show up in other ways.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions