Skip to content

Accessibility #113

@manfredlotz

Description

@manfredlotz

It seems that codly doesn't support accessibility offered by Typst 0.14.0

If I compile this

#import "@preview/codly:1.3.0": *
#show: codly-init.with()


#set document(title: "Sample document")

= This is codly

#codly(
  languages: (
    rust: (name: "Rust", icon: "🦀", color: rgb("#CE412B")),
  )
)


```rust
pub fn main() {
    println!("Hello, world!");
}
```

I get

error: PDF/UA-1 error: missing alt text
     ┌─ @preview/codly:1.3.0/src/lib.typ:1807:2
     │
1807 │ ╭   figure(
1808 │ │     kind: "__codly-end-block",
1809 │ │     supplement: none,
1810 │ │     numbering: none,
     · │
1814 │ │     caption: none,
1815 │ │   )[]
     │ ╰─────^
     │
     = hint: make sure your images and equations have alt text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions