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

Autoscroll to last edited position #9

Open
ptzz opened this issue Mar 1, 2016 · 2 comments
Open

Autoscroll to last edited position #9

ptzz opened this issue Mar 1, 2016 · 2 comments

Comments

@ptzz
Copy link

ptzz commented Mar 1, 2016

No description provided.

@kaishin
Copy link
Owner

kaishin commented Mar 3, 2016

This would involve diffing the output HTML and adding some sort of tag with an id, I guess. I wonder how this would affect performance and how bullet proof it's going to be. For instance if the markdown file contains HTML and the last change involves changing an HTML tag then simply inserting another tag will break things. Happy to discuss or even better review a PR.

@ptzz
Copy link
Author

ptzz commented Mar 3, 2016

Don't know much about HTML rendering but maybe navigate to the closest tag before the first diff in the output HTML? Or even better, if there is some way/api to get an (approximate?) mapping from HTML source line (where first diff is) to vertical position in rendered HTML.

Perhaps some inspiration could be found here.

@kaishin kaishin changed the title [Feature Request] Autoscroll to last edited position Autoscroll to last edited position Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants