Update Markdown docs for reflex-dev/reflex#6085#1730
Merged
adhami3310 merged 4 commits intomainfrom Jan 15, 2026
Merged
Conversation
* fix misrendered nested code blocks in markdown examples * update deps
Contributor
Greptile SummaryUpdates markdown documentation and codebase to align with changes in reflex-dev/reflex#6085, which modifies the markdown component API. The key changes are:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant MarkdownDocs as docs/library/typography/markdown.md
participant Flexdown as pcweb/flexdown.py
participant Headings as pcweb/templates/docpage/blocks/headings.py
participant ReactMarkdown as react-markdown (upstream)
Note over ReactMarkdown: react-markdown 10.0.0 changes<br/>'codeblock' → 'pre' in component_map
User->>MarkdownDocs: Read markdown documentation
MarkdownDocs->>MarkdownDocs: Update examples<br/>codeblock → pre<br/>Add plugin documentation
User->>Flexdown: Render markdown content
Flexdown->>Flexdown: Update component_map<br/>codeblock → pre<br/>Add DemoBlockNestedMarkdown
Flexdown->>Headings: Call heading functions with text
Note over Headings: Changed signature<br/>list[str] → str
Headings->>Headings: Process text directly<br/>(no more text[0])
Headings-->>Flexdown: Return rx.Component
Flexdown-->>User: Rendered markdown
Note over MarkdownDocs,ReactMarkdown: All changes ensure compatibility<br/>with react-markdown 10.0.0
|
You can now include nested markdown in headers and it will slugify it correctly using hast-util-to-string to properly extract recursively nested elements. Also includes a driveby fix for scroll-margin when the hosting banner is displayed.
adhami3310
approved these changes
Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.