Giter Site home page Giter Site logo

Comments (4)

mark-hahn avatar mark-hahn commented on June 1, 2024

I'm assuming this is due to a scroll sync based on an absolute position.

It's based on the html element in the DOM. It should match. I have some
bug. Can you please email the example file to me at [email protected]?

, could it synchronize based on a percentage of the position in the file
instead?

That wouldn't work. Imagine how an image could be one line in the source
file and two screens high in the preview.

On Mon, Mar 9, 2015 at 6:00 PM, fredlebel [email protected] wrote:

A large MD file will tend to lose sync offset as the file is scrolled
down. The offset can even grow as large as a full screen height. I'm
assuming this is due to a scroll sync based on an absolute position.

If possible, could it synchronize based on a percentage of the position in
the file instead? That way, scrolling even 90% would still be accurate.
Scrolling to the bottom would synchronize to the bottom of the preview.


Reply to this email directly or view it on GitHub
#3.

from markdown-scroll-sync.

fredlebel avatar fredlebel commented on June 1, 2024

Try this MD as an example: https://github.com/baskerville/bspwm/blob/master/doc/bspwm.1.txt

from markdown-scroll-sync.

mark-hahn avatar mark-hahn commented on June 1, 2024

Thanks. I'll work on this tomorrow.

On Mon, Mar 9, 2015 at 8:11 PM, fredlebel [email protected] wrote:

Try this MD as an example:
https://github.com/baskerville/bspwm/blob/master/doc/bspwm.1.txt


Reply to this email directly or view it on GitHub
#3 (comment)
.

from markdown-scroll-sync.

mark-hahn avatar mark-hahn commented on June 1, 2024

I improved the accuracy of the sync in your file until I got to the first instance of ~~~~~~. This is not meaingful markdown. ~~ is meant to surround strike-out text. So having three of these in a row would mean the text following is to be strike-through. However markdown-preview screws up and shows the following text as a code block. If you remove all those tildes everything works great. You can see this for yourself.

Since everything is screwed up I can't sync it. Sorry. I would suggest submitting an issue to atom/markdown-preview.

Thanks again. I wouldn't have learned any of this without your help.

I have released the improved syncing version as 0.2.0

from markdown-scroll-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.