iamgio / iamgio/quarkdown

Bug(.landscape): mermaid diagram overlapping the next content

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

Description

I found another bug with landscape mode and mermaid diagrams.
They are placed inside and all over the following content.

You can label this as low prio too. Normal orientation works fine and else I might just mention to look at a external file for now.

## I did
`quarkdown c --pdf bug.qd`

```quarkdown

.doctype {paged}
.theme {paperwhite} layout:{minimal}

## Heading 1
.landscape
.mermaid
.read {zeitplan.mmd}

## Heading 2
```

```
%% zeitplan.mmd
gantt
dateFormat HH:mm
axisFormat %H:%M

section ham
foo :20:30, 30m

section spam
bar :21:30, 30m

section eggs
bas :23:30, 30m
```

## What happens

Image

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with `quarkdown c --pdf bug.qd`, using the embedded `zeitplan.mmd` Mermaid chart and landscape block. Trace the PDF layout path for landscape Mermaid content and compare it with normal orientation. Done means the generated PDF keeps the Mermaid diagram within its page and does not overlap the following Heading 2 content.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.