TTWLLL
December 5, 2025, 9:59am
1
I tried using <span> and other elements, but they all start on a new line. I also checked the HTML itself but couldn’t find a successful workaround.
The desired example would be: a single text line with inline figures.
Apache Parquet #html.elem("img", attrs: (src: "/assets/images/Parquet.png",
style: "height:24pt; display: inline; vertical-align: middle")) is a file format.
Y.D.X
December 5, 2025, 11:04am
2
TTWLLL
December 5, 2025, 2:47pm
3
Thanks.
I did some checking. Is span a new feature introduced after 0.12? I’m currently using astro-typst around version 0.12.0‑beta.4 (GitHub - OverflowCat/astro-typst: All-in-one Typst integration for Astro ). I think in that case I should not be able to use span as I can not build it .
Y.D.X
December 5, 2025, 2:49pm
4
Indeed. Typed HTML API was introduced in v0.14.0 .
You can try html.elem("span", …) instead.
TTWLLL
December 6, 2025, 4:30pm
5
Thanks. I managed to use Typst 0.14 in my dependency. However, I still see my figure and text split into two lines, and I haven’t found a way to force them onto a single line.
This results into two lines still:
#html.span([
#html.elem("img", attrs: (src: "/assets/images/Parquet.png", style: "height:24pt")) Parquet
])
Y.D.X
December 6, 2025, 5:30pm
6
I didn’t make it clear… I mean this:
#html.span(
html.img(src: "/assets/images/Parquet.png", style: "height:24pt; display: inline;")
) Parquet