Git Product home page Git Product logo

Comments (8)

madranet avatar madranet commented on May 17, 2024 5

@uranusjr: The bottom line is, I don’t really see the point of syncing the editor when the preview scrolls...

I do.

When I've written a longish piece and am proof-reading it, I'll proof-read it in the preview window. Then, if I spot a typo or other error, I'll want to jump back to the edit window to fix it. If sync'd scrolling worked in both directions, this would be easy. As it is, I have to hunt through the edit window to find the offending markdown for correcting.

from macdown.

ychoi avatar ychoi commented on May 17, 2024 3

still looking for this in 2021 ;) It would be nice if one could at least click "jump to preview position" in editor. I use markdown for summaries on studies and it is really awful to scroll through large summaries or find a certain position where I would like to continue working on.

Same here.

from macdown.

masakichi avatar masakichi commented on May 17, 2024 1

Maybe you are right.

But, I think it is not only a editor but also a reader, both editor and proof reader will use your App. If so what I said will make sense.

from macdown.

OuttaSpaceTime avatar OuttaSpaceTime commented on May 17, 2024 1

still looking for this in 2021 ;) It would be nice if one could at least click "jump to preview position" in editor. I use markdown for summaries on studies and it is really awful to scroll through large summaries or find a certain position where I would like to continue working on.

from macdown.

uranusjr avatar uranusjr commented on May 17, 2024

This is actually deliberate. Most Markdown editors with scrolling sync do it this way, including:

The only editor I know of that does it both ways is StackEdit.[1] I’m not sure why this is the case, but I can image there might be some tricky problems when both scrollers need to sync, causing some kind of dead locks.

The bottom line is, I don’t really see the point of syncing the editor when the preview scrolls. It is obviously useful to sync the preview because you can see the updates when you enter things in the editor, but the other way around doesn’t seem that useful at all.

I would consider implementing this if there are cases in which this might be useful, though.

[1] StackEdit actually does it in a cool way. My guess is that they utilise the parser’s source map. I don’t currently plan to look into this though, since it’ll take much time.

from macdown.

uranusjr avatar uranusjr commented on May 17, 2024

I would imagine that editors usually just read the rendered HTML and wouldn’t edit the Markdown source themselves. Might not be the case though, I’ve never worked in related areas.

This is still an interesting idea though. I would still consider implementing it, especially something like what StackEdit does. I’m closing this now, but I might revisit the idea if there’s time.

from macdown.

tmikaeld avatar tmikaeld commented on May 17, 2024

I went here to comment on the scrolling - see, when images are rendered, you won't see the text you write beneath them because the text will be below the images on the right side.

I'd suggest adding line-change detection, so that when a line get changed it will auto-scroll to that position instead of relying on sync scroll only.

from macdown.

cskeeters avatar cskeeters commented on May 17, 2024

I just checked out Dillinger, and when you activate the Scroll Sync in settings, it syncs the preview when you scroll the source and the source when you scroll the preview.

from macdown.

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.