Skip to content

Adding support for different bullets by UL indentation level#1173

Closed
etoledom wants to merge 2 commits intodevelopfrom
feature/list_bullets_identation
Closed

Adding support for different bullets by UL indentation level#1173
etoledom wants to merge 2 commits intodevelopfrom
feature/list_bullets_identation

Conversation

@etoledom
Copy link
Copy Markdown
Contributor

This PR adds support for different bullets by UL indentation level for parity with Gutenberg Web:

The indented bullet will still be the same than the previous one (black bullet) until Android adds support for this too.

bullets

To test:

  • TextList.swift.
  • Search for return "\t\u{2022}" and change the unicode from 2022 to 25E6 (white bullet).
  • Open the example project and check that the indented bullets are the white dot. (as in the screenshot)

@SergioEstevao
Copy link
Copy Markdown
Contributor

Could this be done in a way that the bullet characters are configurable by the user of the library?

Copy link
Copy Markdown
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

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

While the idea behind this PR is great, my understanding is that right now this change doesn't really change bullets at all - only the code in preparation for something that we're expecting will come up.

I understand and agree with the direction but my suggestion for this PR would be to either:

  • Make it possible to customize the bullets as @SergioEstevao is proposing, or
  • Merge this once we can swap to actually having a new bullet.

That said, @SergioEstevao 's suggestion sounds much better IMHO for a generic library.

@etoledom
Copy link
Copy Markdown
Contributor Author

I agree with you both!
Now that this is on its own PR, it makes sense to extend it to add a proper support for customizable bullets.

@SergioEstevao
Copy link
Copy Markdown
Contributor

@etoledom are you still working on this?

@etoledom
Copy link
Copy Markdown
Contributor Author

etoledom commented May 2, 2019

I haven't retaken this task yet.
Feel free to take it 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants