-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListItem.attributedText: is this the desired behavior? #32
Comments
I think this is related to #18. I see the default behavior of attributedText() to fully render the lists and sublists recursively with appropriate new lines and indentation (which it does not currently do correctly), with some type of options or rendering/behavior protocol parameter that can be passed to it if different behavior is desired (such as in lists/sublists in your case). Please let me know if you have any ideas on how best to achieve this, and I will think about it as well. |
It's good to know that you see |
Yeah, my personal use of the framework didn't call |
If there are nested lists, then the
attributedText()
for the ListItem includes all the sub-lists as well.For example, with this document:
The first ListItem has a attributedText value of
list 1 a paragraph inside list one, followed by:• embedded list• another embedded item1. ordered list inside2. another ordered item• third embedded item
because it includes all blocks under the list item.I'm not sure if that is what you really want, but I wonder how useful that is.
I'm not sure what you really had in mind for the use of
attributedText()
, so maybe this fits with what you had in mind.For my usage, however, it would be more useful to have some version of
attributedText()
that didn't descend into sublists.So, this issue is mostly a placeholder for you to either state that this is your desired behavior, or to open the issue of what other behavior might be desired.
The text was updated successfully, but these errors were encountered: