Skip to content

feat(styled-text): support headings and horizontal rules in rich text - #12674

Draft
80avin wants to merge 3 commits into
slint-ui:masterfrom
80avin:markdown-dt-refactor
Draft

feat(styled-text): support headings and horizontal rules in rich text#12674
80avin wants to merge 3 commits into
slint-ui:masterfrom
80avin:markdown-dt-refactor

Conversation

@80avin

@80avin 80avin commented Jul 28, 2026

Copy link
Copy Markdown
  • feat(styled-text): support headings and horizontal rules in rich text
  • test(styled-text): cover headings and horizontal rules
  • docs(text-layout): document ParagraphBlock, headings, and horizontal rules

@80avin 80avin changed the title markdown dt refactor Refactor the datatypes to easily express the markdown elements Jul 28, 2026
@80avin
80avin marked this pull request as draft July 28, 2026 14:45
@80avin
80avin force-pushed the markdown-dt-refactor branch 2 times, most recently from 3caa842 to 8390f99 Compare July 28, 2026 20:19
80avin added 3 commits August 3, 2026 00:43
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
80avin force-pushed the markdown-dt-refactor branch from 8390f99 to 417f903 Compare August 2, 2026 19:16
@80avin 80avin changed the title Refactor the datatypes to easily express the markdown elements feat(styled-text): support headings and horizontal rules in rich text Aug 2, 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