this post was submitted on 25 Aug 2024
166 points (88.8% liked)
Linux
48008 readers
825 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
No joke, Emacs has the ability to render in line markdown, essentially the current line is just text, while the rest of the doc is rendered as markdown titles, links, lists, etc. It's my favourite way of editing markdown but I've never found another editor that does markdown like that. Everything else has text and rendered markdown side by side as separate panes, which I personally hate.
Edit: I stand corrected. Neovim has it too: https://github.com/MeanderingProgrammer/render-markdown.nvim
Sounds like what Obsidian and Logseq do? Awesome!
Marktext is another. Pretty lightweight and more permissive license than Obsidian.
This sounds amazing. I've been using markdown-mode for ages now though, and I've never come across this feature.
How do you enable this?
I have it in my config, will link to a specific commit in case anything changes. Look for the heading called MARKDOWN and I'd recommend grabbing all 3 subsections (MARKDOWN, Markdown Headings, Markdown Concealing). The main part is the last one iirc. Link: https://gitlab.com/theshatterstone/dotfiles/-/blob/6f00007eac475946e11fa3278ffbf526400b7e10/.config/emacs/config.org
Edit: Links from the Table of Contents don't work in Gitlab, unfortunately, so you'll have to scroll to it yourself.
Some people over at reddit seem to suggest that the functionally you speak of doesn't exist, except in the form of a proof of concept snippet over at SO.
EDIT: Said snippet would probably be sufficient, if it handled codeblocks correctly (stuff in between
```
). At the moment, it handles them miserably (maybe because they are multineline elements?)