Skip to main content

Feature Request: Combine Markdown and Preview Into a Single Pane

Comments

2 comments

  • Fletcher Penney

    (Speaking for myself, not Brett. As always.... )

    As for blended preview/editor, I believe there is at least one app that does something like this (not sure if it was macOS, iOS, Windows, or webapp), but it is not something I am interested in.  I believe that a key feature of Markdown is that it is designed to be human read as part of the workflow.  I think there are benefits to writing and editing Markdown in plain text (with syntax highlighting as desired), but with the HTML view as a separate "pre-printing" step.  Obviously everyone has their own preferred workflow and that is fine.  And you can use the theme to fade the markup syntax into the background as much as you like...  

    I write this not to say that your suggestion is "invalid", it's just not something I am interested in, and *extremely* unlikely to be something I implement in the editor.  I don't want to give you false hope that a feature may be under consideration when there is basically no chance of it happening.

    As for the preview and synchronization -- there are two parts to this.

    1. Synchronization while typing.  This is easier, since it is obvious exactly what part of the document is being edited while you type.  I have not experienced trouble with this (outside of a few bug fixes in the past).  Of course there may be some edge cases, and the alignment isn't necessarily perfect down to the pixel (especially with varying line lengths), but when I am editing documents with the preview on, I have not noticed any issues with being unable to see what I am working on. If you have examples where this is not the case, then please send them to me to work on improvements.

    2. Synchronization while scrolling. This is a trickier problem. The other applications that I have tested (which is certainly not all of them) used a "dumb" 1:1 scrolling ratio (e.g. if the editor is scrolled 50% to the bottom, then scroll the preview 50% to the bottom.) Obviously this may give reasonable results in very simple documents, but anything remote complicated will be off. Instead, I create a map between the editor and the preview based on the structure of the document to try and keep it as accurate as possible, while not affecting scrolling performance. It generally works quite well in "normal" Markdown documents, but including raw HTML can lead to edge cases that do not work properly. But even then, the backup is to revert to the dumb 1:1 ratio, so you shouldn't be any worse off than you would be in other applications. As always, examples that don't perform well in this are welcome, but if your example includes raw HTML then there is not much I can do about that at this point. (Short of a new algorithm, which I am always open to considering if a better approach comes along.)

     

     

    Again -- please send examples of files that don't work well for you!

    0
  • Williper Larnloge

    Perhaps a compromise would be to allow for Preview to replace the Editor window vs. splitting the window? I love how iA Writer allows for me to quickly toggle viewing my text in Preview mode vs. Edit mode with a keyboard shortcut. The advantage of iA's implementation is that I can keep my window narrower vs. needing a wide enough window to accommodate the occasional preview.

    2

Please sign in to leave a comment.

Powered by Zendesk