iamgio / iamgio/quarkdown

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

Open
#433 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
16.1k
Forks
499
Avg merge
5h 55m
Merged PRs (30d)
56

Description

### Before submitting

- [x] I am using the latest version of Quarkdown.
- [x] 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

```markdown
.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_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the provided Quarkdown input, including a naturally wrapped heading or a line break via `.br`. Trace the heading rendering and `::before` paragraph-numbering behavior; done means every continuation line remains aligned with the first line of heading text.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.