Skip to content

[Bug] Non-bullet text child block on bullet is not aligned with parent #7729

@black-puppydog

Description

@black-puppydog

Bug Description

This is purely a rendering issue.
When writing bullet lists I often include small paragraphs into bullets.
This works fine conceptually, but the rendering is off (see below).
This is really unfortunate since it makes such lists much less readable; it's easy to confuse the nested text for an unindented block, not part of the list.

Sorry if this has been reported, I tried searching with various queries in the whole org without success...

How to Reproduce

Image

The "copy" export results in this markdown:

* This is a list item
This text is part of the same bullet point
	This text is a new non-bullet block, nested below the bullet above.
	Note how it doesn't visually align with its parent.
	* This is a sub-bullet
	Another text block of the outermost bullet
* And finally the next bullet

But I think it's worth mentioning that, in a pure markdown editor, I would have structured it like such:

* This is a list item
  This text is part of the same bullet point
  This text is a new non-bullet block, nested below the bullet above.
  Note how it doesn't visually align with its parent.
  * This is a sub-bullet
  Another text block of the outermost bullet
* And finally the next bullet

This uses spaces for indentation, not \t like the export from AppFlowy. Not sure whether that matters.

Expected Behavior

All direct descendants of a bullet that are not bullets themselves should align on the same vertical line:

Image

Operating System

Linux (debian unstable, .deb install)

AppFlowy Version(s)

0.8.7

Screenshots

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingeditorfeatures related to the rich-text editorplatform-linux

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions