Skip to content
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

Numbered list #12

Open
Jjagg opened this issue Dec 16, 2020 · 0 comments
Open

Numbered list #12

Jjagg opened this issue Dec 16, 2020 · 0 comments
Labels
boustro_starter enhancement New feature or request P3 Low priority

Comments

@Jjagg
Copy link
Owner

Jjagg commented Dec 16, 2020

It'd be nice to have a bidirectional iterator that can iterate paragraphs of both a BoustroDocument and a DocumentController. A copy of the iterator can then be passed when building a paragraph.

I think that'd be the cleanest way to add numbered list support. This system would mean every numbered list paragraph would have to count all items before it (O(N^2)). Though that's fine considering the low number of lines we're dealing with.

Alternatively we could have some state object that we pass through to every line for them to track state during the build step. This is less flexible, but more efficient.

Either way we really don't want to bake the line counting into boustro's core systems. It should be handled by the component itself.

@Jjagg Jjagg added the enhancement New feature or request label Dec 16, 2020
@Jjagg Jjagg mentioned this issue Dec 21, 2020
9 tasks
@Jjagg Jjagg added the P3 Low priority label Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
boustro_starter enhancement New feature or request P3 Low priority
Projects
None yet
Development

No branches or pull requests

1 participant