≈ the.bay.news

markdown-ts-appear: Rendered Markdown, editable in place

programming.dev
markdown-ts-appear: Rendered Markdown, editable in place
> I’ve never been a big fan of the split source/preview workflow for Markdown. I just want to read nicely formatted text and edit it directly, without constantly switching between two views. > > So I made markdown-ts-appear. > > The idea is similar to org-appear: Markdown looks rendered by default, but when you move the cursor onto an element, its source is revealed for editing. Move away, and it goes back to looking nice. All in the same buffer, without modifying the underlying text. > > [https://infosec.pub/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Fb9f14047-3598-4e4b-bd06-c0829e88a82e.gif] > > I also wanted to go a bit beyond just hiding markup, so I ended up adding a bunch of visual improvements: prettier code fences, blockquotes, callouts, link icons, tables that wrap to fit the window, and optional MathJax previews. > > [https://infosec.pub/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2F7f036ece-c437-4e31-9317-b751eeb2aaba.png] > > It’s built on the new Tree-sitter-based markdown-ts-mode (Emacs 31.1+), so rendering stays fast and responsive. It is available on MELPA. > > I’ve been using it for my own Markdown editing, and it’s pretty much the experience I was looking for. Thought I’d share it here in case anyone else has the same itch. > > Feedback and bug reports are very welcome! OC by @thysrael@lemmy.ml [/u/thysrael@lemmy.ml] [https://lemmy.ml/u/thysrael]

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.