News for hackers. Stuff that matters.
Re:If it is worth keeping, save it in Markdown by jon_richards on Tuesday February 25, 2025 @07:24PM (#43179228)
The killer app for markdown would be a collaborative editor that displays the raw markdown and formatted markdown side-by-side and makes both sides editable. Tech people can use `#` and `*` on one side for formatting, product people can use normal text-editor buttons like "header1", "italics", etc.
Re:If it is worth keeping, save it in Markdown by r3trohack3r on Tuesday February 25, 2025 @07:54PM (#43179424)
I built this in college, but the code is lost. It was a week or so of hacking. I believe in you.

IIRC the trick was to get a pipeline for Markdown to HTML, render it into a WYSIWYG editor, then convert the HTML to an AST, and walk that to generate the markdown. I had to “format” both the markdown and html on each render (bidirectional round trip render) because parsing/gen wasn’t whitespace stable.

Re:If it is worth keeping, save it in Markdown by jkingsman on Tuesday February 25, 2025 @08:06PM (#43179497)
It's not collaborative, but this is what I love about Typora[0]. Click into a styled area and the styling becomes visible. Click out, and you just see the final styling.

[0] https://typora.io/

Re:If it is worth keeping, save it in Markdown by Helmut10001 on Wednesday February 26, 2025 @02:30AM (#43181529)
Typora is really a gem in the Markdown universe.
Re:If it is worth keeping, save it in Markdown by jxjnskkzxxhx on Tuesday February 25, 2025 @07:37PM (#43179303)
Sounds like an obsidian plugin.
Re:If it is worth keeping, save it in Markdown by mock-possum on Tuesday February 25, 2025 @07:49PM (#43179387)
Notepad++ and VSC both have plugins for this.

They’re fine.

Re:If it is worth keeping, save it in Markdown by philips on Tuesday February 25, 2025 @08:35PM (#43179678)
Someone is building that: https://screen.garden
Re:If it is worth keeping, save it in Markdown by pphysch on Tuesday February 25, 2025 @08:11PM (#43179544)
Why does it need to be side by side? Just let each client choose WSIWYG or raw.
Re:If it is worth keeping, save it in Markdown by david422 on Tuesday February 25, 2025 @08:36PM (#43179682)
When writing in text mode so that you can see what you are generating. Wouldn't really need it the other direction though.
Re:If it is worth keeping, save it in Markdown by oneeyedpigeon on Wednesday February 26, 2025 @05:42AM (#43182554)
Isn't the point of Markdown that you don't need to 'see what you are generating', you can just read it? I write Markdown every day, but I do it in a plaintext editor (with syntax highlighting). I have a keyboard shortcut to view a preview in my browser, but I don't see a great need to be viewing that preview all the time.
Re:If it is worth keeping, save it in Markdown by immibis on Wednesday February 26, 2025 @07:49AM (#43183165)
I think the point of Markdown is to signal that you're someone who uses things like Markdown.
Re:If it is worth keeping, save it in Markdown by pphysch on Wednesday February 26, 2025 @02:35PM (#43187276)
Markdown is ubiquitous even in boring corporate technical writing processes nowadays. Nothing hip about it.
Re:If it is worth keeping, save it in Markdown by renewiltord on Tuesday February 25, 2025 @08:10PM (#43179533)
You can do that in IntelliJ. If there's a way to control a tab on a browser you could do that too. When I was writing my thesis, I would have `inotifywait` running on one side and when it detected the file had changed it would run the entire `pdflatex` + `bibtex` pipeline the 6 times or whatever it needed and Evince would hot-reload so I had a live preview. I'm sure a browser can do the same with some command.
Re:If it is worth keeping, save it in Markdown by philips on Tuesday February 25, 2025 @08:36PM (#43179680)
Someone is sort of building this on Obsidian: https://screen.garden
Re:If it is worth keeping, save it in Markdown by darkteflon on Tuesday February 25, 2025 @09:32PM (#43179977)
Re:If it is worth keeping, save it in Markdown by dtkav on Tuesday February 25, 2025 @11:44PM (#43180696)
Thanks for the plug :)
Re:If it is worth keeping, save it in Markdown by packetlost on Tuesday February 25, 2025 @08:54PM (#43179784)
yoooo this is sweet. Been looking for this for awhile.
Re:If it is worth keeping, save it in Markdown by eviks on Tuesday February 25, 2025 @09:34PM (#43179987)
This is a very common mistake wasting half your screen, it can't be no killer app
Re:If it is worth keeping, save it in Markdown by dtkav on Tuesday February 25, 2025 @11:43PM (#43180690)
Here's a comparison chart of collaboration/teamwork plugins in Obsidian.

https://system3.md/observatory/categories/collaboration-team...

Peerdraft, Relay, and Screen Garden are all based on CRDTs, and Obsidian is also currently working on native collaboration.

(disclaimer: I work on Relay)

Re:If it is worth keeping, save it in Markdown by Helmut10001 on Wednesday February 26, 2025 @02:31AM (#43181541)
Unfortunately, all of these are not self-hostable. I wish there was something like Nextcloud for Markdown Collaboration.
Re:If it is worth keeping, save it in Markdown by dtkav on Wednesday February 26, 2025 @03:07AM (#43181743)
Relay now supports self hosting the collaboration server. It works with tailscale out of the box.

We still have a centralized service for authentication and authorization, but if you self host it is impossible for us to access your files.

Re:If it is worth keeping, save it in Markdown by Imustaskforhelp on Wednesday February 26, 2025 @12:59AM (#43181106)
I think this feature is already in qownnotes.

Surprised , nobody mentioned qownnotes

Edit: I was wondering how to enable this mode because it wasn't in my qownnotes ,Here's how I found it , go to the help section , click find action , and search preview and click on show note preview panel.

Now the caveat is that if you want to see it blitted , you have to save the file once to see it automatically show in the other side. Maybe this can also be definitely automated / I feel like there was some feature that did that for that as well or atleast its very non trivial.

Edit 2 : okay so I just realized that qownnotes also ships with autosave feature which saves and thus also shows what you type in reader mode in like a 0.5 second delay. And I think there is also a way to decrease / increase the autosave part as well

Dude , I didn't realize it , but qownnotes is so good!

Re:If it is worth keeping, save it in Markdown by DidYaWipe on Wednesday February 26, 2025 @03:56AM (#43182027)
Or just a plain VIEWER.
Re:If it is worth keeping, save it in Markdown by extinctpotato on Wednesday February 26, 2025 @08:13AM (#43183330)
You might appreciate this: https://antmicro.github.io/myst-editor/
Re:If it is worth keeping, save it in Markdown by _hhnj on Wednesday February 26, 2025 @10:46PM (#43191119)
HackMD already does this. It has a dual-pane view for raw markdown and formatted output, supports WYSIWYG editing, and allows real-time collaboration. Surprised no one mentioned it.

- [HackMD: Your Collaborative Markdown Workspace for Knowledge Sharing](https://hackmd.io/)

Re:If it is worth keeping, save it in Markdown by walthamstow on Thursday February 27, 2025 @02:43AM (#43192214)
Notion had the potential to be like this, but instead it's garbage. You can put markdown in, but you can't get it out.