Skip to content

Apostrophe in headings breaks code #189

@theapiarist

Description

@theapiarist
# Here's a `new` heading

breaks the displayed header, which looks like this:

Image

I know less than nothing about Rust (but could suggest a fix in perl 😉), but Claude tells me that line 99 of html.rs the raw inner HTML is used verbatim inside single quotes, so an apostrophe closes the attribute early. This means the code tag leaks into displayed text.

Claude has provided a simple 4 line solution and test. Once I've worked out how to submit a PR I'll do so.

Thank you for the software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions