Skip to content

feat: render README markdown using available renderer#5

Open
katosh wants to merge 1 commit intohtml_repfrom
feat/readme-markdown
Open

feat: render README markdown using available renderer#5
katosh wants to merge 1 commit intohtml_repfrom
feat/readme-markdown

Conversation

@katosh
Copy link
Collaborator

@katosh katosh commented Feb 11, 2026

Try markdown-it-py (via rich) or mistune (via nbconvert) to render
.uns["README"] as HTML in the modal. Falls back to plain text if
neither is installed. No new dependencies added.

  • render_markdown() in utils.py tries renderers in order
  • Raw HTML in markdown source is escaped (html=False / escape=True)
  • Tables and strikethrough enabled for GFM compatibility
  • data-readme-format attribute tells JS whether to use innerHTML or textContent
  • Restored full markdown CSS from before the parser removal

Try markdown-it-py (via rich) or mistune (via nbconvert) to render
.uns["README"] as HTML in the modal. Falls back to plain text if
neither is installed. No new dependencies added.

- render_markdown() in utils.py tries renderers in order
- Raw HTML in markdown source is escaped (html=False / escape=True)
- Tables and strikethrough enabled for GFM compatibility
- data-readme-format attribute tells JS whether to use innerHTML or textContent
- Restored full markdown CSS from before the parser removal
@katosh katosh changed the base branch from main to html_rep February 11, 2026 00:34
@settylab settylab deleted a comment from coderabbitai bot Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments