Skip to content

[HTML export] Show rule of html.frame seems not behaved as expected #6477

@ay-tony

Description

@ay-tony

Description

I'm trying to present \mathscr style math equations in html export. Here's the code

#context target()

#let scr(it) = text(
  features: ("ss01",),
  box($cal(it)$),
)

#html.frame($A scr(A)$)

#show math.equation: it => html.frame(it)

$A scr(A)$

However, the first testcase #html.frame($A scr(A)$) works, while second $A scr(A)$ (by show rules) doesn't. The scr(A) is not printed. Here's the result.

Image

And the compile command and log:

> typst compile --format html test.typ --features html
warning: html export is under active development and incomplete
 = hint: its behaviour may change at any time
 = hint: do not rely on this feature for production use cases
 = hint: see https://github.com/typst/typst/issues/5512 for more information

warning: frame was ignored during paged export
   ┌─ test.typ:10:27
   │
10 │ #show math.equation: it => html.frame(it)
   │                            ^^^^^^^^^^^^^^

It replied an error with paged export, but I had correctly configured, as the test html presented.

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghtmlRelated to HTML export

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions