From cd044825fcb1651781f1dbcafac4dec8b216e370 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 23 Jan 2025 23:18:02 +0100 Subject: Handle boxes and blocks a bit better in HTML export (#5744) Co-authored-by: Martin Haug <3874949+reknih@users.noreply.github.com> --- tests/ref/html/block-html.html | 15 +++++++++++++++ tests/ref/html/box-html.html | 12 ++++++++++++ tests/suite/layout/container.typ | 7 +++++++ 3 files changed, 34 insertions(+) create mode 100644 tests/ref/html/block-html.html create mode 100644 tests/ref/html/box-html.html (limited to 'tests') diff --git a/tests/ref/html/block-html.html b/tests/ref/html/block-html.html new file mode 100644 index 00000000..98d971b8 --- /dev/null +++ b/tests/ref/html/block-html.html @@ -0,0 +1,15 @@ + + + + + + + +

+ Paragraph +

+
+ Div +
+ + diff --git a/tests/ref/html/box-html.html b/tests/ref/html/box-html.html new file mode 100644 index 00000000..5c970a6b --- /dev/null +++ b/tests/ref/html/box-html.html @@ -0,0 +1,12 @@ + + + + + + + +

+ Text Span. +

+ + diff --git a/tests/suite/layout/container.typ b/tests/suite/layout/container.typ index bb53a041..f15ddfe4 100644 --- a/tests/suite/layout/container.typ +++ b/tests/suite/layout/container.typ @@ -264,6 +264,13 @@ First! image("/assets/images/rhino.png", width: 30pt) ) +--- box-html html --- +Text #box[Span]. + +--- block-html html --- +Paragraph +#block[Div] + --- container-layoutable-child --- // Test box/block sizing with directly layoutable child. // -- cgit v1.2.3