Skip to content

Multi-line tag opening is not parsed inside a blockquote #641

Closed

Description

@nsafai

A tag opening that spans several lines is not recognised inside a blockquote.

Outside a blockquote, this parses to a callout tag:

{% callout
   type="note" %}
Hi
{% /callout %}

Inside a blockquote, the same text parses to an error node, a paragraph, and a stray closing tag:

> {% callout
>    type="note" %}
> Hi
> {% /callout %}
Markdoc.parse('> {% callout\n>    type="note" %}\n> Hi\n> {% /callout %}\n')
  .children[0].children.map((n) => n.type);
// ['error', 'paragraph', 'tag']

Tested on main (0.5.9).

This also affects format(): a tag with a long opening inside a blockquote is wrapped across lines (maxTagOpeningWidth), and the result no longer parses.

Activity

  1. added a commit that references this issue on Sep 16, 2026
    16e1840
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions