Skip to content

Bug: generated catalog and collection text is not always rendered literally #25

Closed

Description

@drevendev

Reproduced reader-visible behavior

Reviewed 2026-10-19 at master c2cbcf07ae67263ec7dbeb7cfb5822ea65b49c38.

  • In examples/curated-starter/curate.py (blob 32cdddb2), accepted scope values beginning with # , - or 1. become a new heading or list in the generated document. ~~description~~ becomes strikethrough.
  • In tools/catalog.py (blob db02dd26), escape() promises literal text but does not escape tildes. A title ~~Original meaning~~ becomes strikethrough in a Markdown renderer with that extension enabled.

Reproduced by generating Markdown from valid-shaped data and rendering it locally with MarkdownIt plus strikethrough support. This is a formatting/meaning defect, not a demonstrated HTML execution vulnerability.

Priority / existing work

P2, required before recommending the affected generators as literal-text examples. The existing beautifulrepo/workshop-hardening-20261018 and beautifulrepo/curated-markdown-plain-text-20261017 branches contain candidate curated fixes; check them first. The core catalog needs the equivalent contract checked too.

Acceptance

  • Preserve user text as text in each promised field, including scope and titles; use a stable labelled paragraph or appropriate escaping to prevent block-structure changes.
  • Handle GFM strikethrough markers consistently without corrupting ordinary tildes, backslashes or Unicode.
  • Add positive and negative regressions for heading/list prefixes, strikethrough and already-escaped text.
  • Verify rendered structure, not only that an escape character occurs somewhere in output.
  • Regenerate the catalog if its projection changes; run catalog, full tests and links checks.

Keep this separate from #17's editorial-style work: the issue is a reproducible rendering-contract failure, not taste or writing quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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