As we continue to get familiar with Discourse and work with it, I’ve come to the realization that the Editor is easily my favorite of all the forum softwares I’ve worked with over the years. However, I think
What I’m recommending is a Block-based editor where you can use “/” and quick shortcuts come up. An Example is notion and another is tipdap editor
Many Markdown editors are moving in the direction of block shortcuts, and I think Discourse could benefit from such a concept in terms of both form and function.
Just stumbled on this open-source library that does Notion-like commands. I’m not sure how easy it would be to integrate into Discourse but wanted to post it just in case someone else had an idea:
The big tricky thing here is the 2 way. markdown ↔ html bridging. Giving up on markdown is something I would like to avoid with any experiments in this space.
I mostly linked it as an example, I do think experimentation in this space could be worthwhile, but I’m not super sure just yet on how it could work on a more technical level, particularly when one of the goals is to not give up markdown <> html bridging.
I believe I still feel positive about this like I did in Jul 2023 when I made the topic, as almost everything I use as an app where writing is involved has similar functionality now.
I’ll give this more thought in the coming weeks and post back if I think of anything.
At minimum, it should include some sort of keyboard method, like typing “/” or some other designated symbol that brings up a seamless selection palette for the insertion of formatting and things that Discourse deems worthy, like notion, tiptap, etc.
Looks like prosemirror uses Discourse (https://discuss.prosemirror.net/) so maybe they have some thoughts on it. Also saw they have an integration for markdown but I have no idea if any of this would align with what Sam talked about, just wanted to include it in case people want to research it more.
@thoka I tested it from the link you gave. It really works great. It would be great to see this editor in discourse. I hope there will be a change like this in the future.
Hm. Seems to work at first glance.
A suitable editor must at least support lossless roundtrip conversion of any discourse markdown → html/editor state → markdown.
The linked demo fails, for example, on aligned tables.
I didn’t find much to get started with in the docs, but working backwards from the Lexical Playground code is helpful, at least in the context of a React app.
Currently Discourse uses a mix of markdown, bbcode and HTML as its underlying data format. Do any plans towards a more unified format exist?
Regarding experiments: Is it common sense that any visual editor should at least be idempotent (no change in source when doing load, do not edit, save) and locally contained (only change in source where edits have been done)?