Skip to content

Handle nested lists in Markdown renderer - #6115

Merged
andydotxyz merged 2 commits into
fyne-io:developfrom
MaxGyver83:nested-lists-markdown
Feb 16, 2026
Merged

andydotxyz merged 2 commits into
fyne-io:developfrom
MaxGyver83:nested-lists-markdown

Conversation

@MaxGyver83

@MaxGyver83 MaxGyver83 commented Feb 16, 2026 •

Copy link
Copy Markdown
Member
  • Keep track of list indentation level
  • Indent sub-lists with 4 spaces per level
  • Pull (sub) lists out of ParagraphSegments -> Sub list becomes an additional list item (of the outer list)

Description:

Fixes #6113

Example of nested lists created from Markdown:

image

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@MaxGyver83
MaxGyver83 marked this pull request as draft February 16, 2026 16:43
- Keep track of list indentation level
- Indent sub-lists with 4 spaces per level
- Pull (sub) lists out of `ParagraphSegment`s
  -> Sub list becomes an additional list item (of the outer list)
@MaxGyver83
MaxGyver83 force-pushed the nested-lists-markdown branch from a6f6d8e to d9d3ee5 Compare February 16, 2026 16:50
@andydotxyz
andydotxyz marked this pull request as ready for review February 16, 2026 17:40
@andydotxyz
andydotxyz marked this pull request as draft February 16, 2026 17:40
andydotxyz
andydotxyz previously approved these changes Feb 16, 2026

@andydotxyz andydotxyz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, we appreciate the help.

I reckon this is a solid fix - not sure why you just set it as a draft :)

@coveralls

coveralls commented Feb 16, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 61.098% (+0.04%) from 61.061%
when pulling 89d1907 on MaxGyver83:nested-lists-markdown
into b898e83 on fyne-io:develop.

@MaxGyver83
MaxGyver83 marked this pull request as ready for review February 16, 2026 18:37
@MaxGyver83

Copy link
Copy Markdown
Member Author

Thanks for working on this, we appreciate the help.

My pleasure!

I reckon this is a solid fix - not sure why you just set it as a draft :)

I had noticed that both indentation and numbering were wrong for nested ordered lists. Now, this PR is ready!

@andydotxyz

This comment was marked as resolved.

@andydotxyz andydotxyz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent thanks

@andydotxyz
andydotxyz merged commit 66cd2df into fyne-io:develop Feb 16, 2026
11 checks passed
@MaxGyver83
MaxGyver83 deleted the nested-lists-markdown branch March 9, 2026 16:31
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.

3 participants