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

Close markers properly in editor-dom renderer #65

Merged
merged 1 commit into from
Aug 11, 2015

Conversation

bantic
Copy link
Collaborator

@bantic bantic commented Aug 11, 2015

Switch to a more naive rendering strategy:

  • find the number of markups this marker has in common with its prev/next
    marker, slice off that number from its own markups and return that
    as the opened/closed markups.
  • This allows us to simply walk up the number of closed markups again.
  • The drawback is that this will cause some unnecessary open/closed markups
    (closing one only to immediately reopen it in the following marker, e.g.)

fixes #63

Switch to a more naive rendering strategy:
  * find the number of markups this marker has in common with its prev/next
    marker, slice off that number from its own markups and return that
    as the opened/closed markups.
  * This allows us to simply walk up the number of closed markups again.
  * The drawback is that this will cause some unnecessary open/closed markups
    (closing one only to immediately reopen it in the following marker, e.g.)
mixonic added a commit that referenced this pull request Aug 11, 2015
Close markers properly in editor-dom renderer
@mixonic mixonic merged commit 57186e3 into master Aug 11, 2015
@mixonic mixonic deleted the overlapping-markers-63 branch August 11, 2015 20:10
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.

Applying markups to overlapping markers creates inaccurate AT
2 participants