Skip to content

apilistalpha template should use HTML-formatted titles (WebKitCSSMatrix) #579

@caugner

Description

@caugner

Context

The apilistalpha template uses plain page.title() which strips backtick formatting. This means titles like `WebKitCSSMatrix` render as plain text instead of being wrapped in <code> tags.

Current behavior

In crates/rari-doc/src/templ/templs/api_list_alpha.rs, the template calls page.title() which returns TitleFormat::Plain — backticks are removed, no <code> wrapping.

Available infrastructure

Since March 2026, the codebase has:

  • render_title() in crates/rari-doc/src/helpers/title.rs supporting TitleFormat::Html (backtick → <code>)
  • titleHTML field in JSON output for pages
  • title_raw on Doc struct preserving original backtick formatting

Proposed fix

Update the apilistalpha template to use HTML-formatted titles so that backtick-wrapped names like `WebKitCSSMatrix` render with proper <code> styling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions