Hacker News new | ask | show | jobs
by bambax 4104 days ago
As soon as the content is over a page long, the "preview" doesn't really work, since what is supposed to be previewed is out of bounds.

I had developed a few years ago a markdown editor with live preview, with a mechanism that synchronized the source and the preview, scroll-wise, so the preview would always display the part that was being edited.

It didn't take off (at all) so I let it go, but I wish there would be a standardized way to do this.

Other than that, great tool! Thanks for sharing.

2 comments

It should be possible to scroll in the preview section, and then keep typing for more than one page length without any problems.

Which browser are you using? What is the bahaviour you're seeing? Does the preview "reset" to the top scrolling position?

Glad you like it :)

> It should be possible to scroll in the preview section, and then keep typing...

Yes of course, that works, but you have to scroll manually.

Maybe I don't write the way other people do, and that's why I need automatic sync and most people don't: I don't write linearly, I write "all over the place".

I constantly go up and down a document when I'm writing something: what's getting written at the bottom impacts what was written at the top. Also I think of better ways of saying something once I've written it, and once I do I need to make changes.

If, every time I change sections, I need to scroll the preview, it's incredibly distracting/annoying (or, useless: but then it's better to have no preview at all).

Also, once a document is of any serious length (say, over 3 pages), finding the part where you are in the preview can get a little difficult.

stackedit.io handles this part of it pretty well.

Looking at this, I was wondering why this team didn't just fork that for their intended collaboration use-case (which is neat!).

Many thanks for this, stackedit looks great. Although I don't understand why there are preview features in the edit pane as well as the preview pane.

The beauty of Markdown is that it's simple text; this is distracting and a little unpleasant.