Skip to content

Inline code (from backticks) should be preserved in TOC title #1980

Open
@jhpratt

Description

@jhpratt

Bug Report

Environment

Zola version: 0.16.1

Behavior

A section with the title `.into::<T>()` should result in <code>.into::<T>()</code> being generated for the TOC title. Currently, it generates .into::(). I believe the <T> is stripped because user-provided HTML is stripped (which has issues on its own). However, I would like the <code> to be preserved outright. It affects formatting — it should be monospace while regular text is not. This is deliberate and desired behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions