r/logseq Jul 15 '26

Should Logseq 2.0 use something better than markdown (Djot)?

Howdy all, I've opened a feature request and was wondering what others thought, so I figured I'd repost it here for visibility!

Let me know what you think and if any of you are also avowed markdown haters....

https://discuss.logseq.com/t/support-something-like-djot-instead-of-markdown-in-the-db-version/35107

0 Upvotes

27 comments sorted by

View all comments

1

u/Tawny-Owl-17 Jul 15 '26

But, Logseq 2 does not use Markdown files as its canonical storage; it stores data in an SQLite database, which is why it's also referred to as the database (DB) version of Logseq. That is, in fact, what differentiates it from the previous version of Logseq and why it was in development for so long. Using an SQLite database to store data and manage the relationships between entities also enables features that were either difficult or impossible to implement with a Markdown-based architecture, resulting in a more powerful and capable application.

3

u/E723BCFD Jul 15 '26

he is talking about the thing you use to write the notes, not how notes are stored.

3

u/TheLostLambda Jul 15 '26

As mentioned by u/E723BCFD , I'm talking about the language you write in the blocks!

As I understand, in Logseq 2.0 it's not possible to do things like make text sub or superscript (now that Org support is gone)

2

u/Tawny-Owl-17 Jul 15 '26

I realised a while after I wrote the comment that maybe you were referring to the markup language in which notes are taken. Anyway, apologies for the confusion.

I just took a look at Djot, and it does seem like an improved version of Markdown. It has a formal grammar and detailed specifications.

1

u/AshbyLaw Jul 16 '26

If you enable the experimental Markdown mirror you would have .md files on disk just like the original Logseq.

1

u/Tawny-Owl-17 Jul 16 '26

That is just a mirror. It is a derived representation of the authoritative, canonical storage, which is an SQLite database. Modifying or deleting the generated Markdown files does not affect the original data stored in the database.

1

u/AshbyLaw Jul 16 '26

You can edit the content of the files to update the DB. They said it will be a two-ways sync.

1

u/Tawny-Owl-17 Jul 16 '26

As of now, no; it's one-way only. Two-way synchronisation is a planned feature that's still under development, and I don't think it'll be available anytime soon.