I know there are ways to preview markdown as you type but is there a way to avoid this duplication of text (rendered and pain text in different buffers)?

Basically, I want to type in the preview. What I'm looking for goes like this:

As I type in

# Headline

, the characters making up the word "Headline" already are being rendered so I see


and as I type a "d", it changes to:


Or some other convenient way of rendering it live without duplication, for example in every line but the one the pointer is currently in.

  • What exactly does duplication mean? Are you referring to having an extra buffer open with the rendered contents, next to a buffer with the text? – wasamasa Dec 8 '16 at 19:17
  • Yes. I'll add this to clarify. – UTF-8 Dec 8 '16 at 19:19
  • Not as far as I know. markdown-mode sort of does this by adjusting the size of titles. More extensive rendering is more like what AucTeX does for LaTeX. – Tianxiang Xiong Dec 9 '16 at 21:56
  • I'd also love to see this, but including the leading #, just like github.com/brrd/Abricotine does. – Tobias Kienzler Feb 16 '17 at 14:28
  • The (commercial) software Typora is such an editor. It works reasonably well. I'd like something similar in Emacs. @TobiasKienzler I tried Abricotine and it does only what so many other Markdown editors do (i.e. show both the markup and its effect). What's being asked for here (e.g. what Typora does) is to show only the effect of the markup (except for a small region around where one is typing). For example, if one types *italics* then (except when the cursor (point in Emacs) is inside that region), one simply sees italicized text, and not the asterisks. – ShreevatsaR Dec 26 '18 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.