Skip to content

[Bug] Heading alignment "broken" when text spans multiple lines #433

@OverSamu

Description

@OverSamu

Before submitting

  • I am using the latest version of Quarkdown.
  • I am using Java 17 or later (java -version).

Description

The paragraph numbering (rendered via ::before) is currently behaving as an inline element. When an heading contains a line break (.br) or wraps naturally, the second line starts below the number instead of remaining aligned with the first line of text.

Input

.doctype {paged}
.pageformat width:{10cm} height:{5cm} margin:{1cm}

# A multiline title

Actual output

Image

Expected output

Image

Operating system

No response

Additional context

No response

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