feat(styled-text): support headings and horizontal rules in rich text - #12674
Draft
80avin wants to merge 3 commits into
Draft
feat(styled-text): support headings and horizontal rules in rich text#1267480avin wants to merge 3 commits into
80avin wants to merge 3 commits into
Conversation
4 tasks
80avin
marked this pull request as draft
July 28, 2026 14:45
80avin
force-pushed
the
markdown-dt-refactor
branch
2 times, most recently
from
July 28, 2026 20:19
3caa842 to
8390f99
Compare
Replace the single StyledTextParagraph struct with a ParagraphBlock enum that can represent regular text, headings, and horizontal rules. The markdown parser emits heading and horizontal-rule blocks, and the text layout renders headings with scaled font sizes and horizontal rules as a drawn line.
Extend the styled_text API test and language test to expect markdown headings and horizontal rules to parse successfully, and add screenshot cases for heading font scaling and horizontal-rule rendering together with their reference images.
80avin
force-pushed
the
markdown-dt-refactor
branch
from
August 2, 2026 19:16
8390f99 to
417f903
Compare
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.
Uh oh!
There was an error while loading. Please reload this page.