Skip to content

Inline raw blocks spanning multiple lines are broken #40

Description

@abel1502

Since Ilm wraps all raw.where(block: false) elements in box-es, a raw block spanning multiple lines is rendered as a huge rectangle in the middle of the text.

UPDATE: I ended up copying the source of Ilm into my project and implementing the fix for myself. The fix I came up with was to replace that show rule with:

show raw.where(block: false): it => h(3pt) + highlight(
  fill: fill-color.darken(2%),
  extent: 3pt,
  top-edge: 0.75em + 3pt,
  bottom-edge: -3pt,
  radius: 2pt,
  it,
) + h(3pt)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions