@nickanderson

Yeah for me too, especially if some functionalities won't be available for the MD/Org version, becoming a second-class support (like Org already is compared to MD).

Instead SiYuan uses a JSON file for each page, but it has excellent MD, PDF, ePub etc export support (via ). And I am liking it.

Now I am exploring (by the author of Pandoc and Commonmark) instead of MD and I think it could be very good to store hidden metadata that now pollute 's MD files.

#pandoc #djot #logseq

Last updated 1 year ago

@spinningthoughts

Oooh support also "+" to start a list, not only - and *, this is perfect!

The + could be used to encode the "collapsed" state of a block instead of something like {%collapsed%} or 'collapsed:: true' like does!

And it is also nice that a "-" looks like a minus as in "click here to collapse the block" while the "+" resemble a button to show more so perfect to "expand the block".

#djot #logseq

Last updated 1 year ago

I think I have solved how to structure visible and hidden data in @spinningthoughts

The lists that uses ":" instead of - or * are called "definitions" in Djot and could be used for sections' properties.

By looking at the AST, it should be easy to parse it and in general convert between a structured data format like JSON and this one.

#djot

Last updated 1 year ago

@spinningthoughts @hl

is basically with additional metadata, I think it would simplify a lot the hacks that for example does on top of Markdown

#djot #markdown #logseq

Last updated 1 year ago

@qwxlea @ednico

Yes, years ago I created sort of plugins for the Dolphin file manager and every time I need to convert documents I select them in a bunch and then right click -> convert to [format]. It still amaze people when they see me doing it.

P.S. check , the new markup language by the author of , it's 90% like but way better in my opinion: github.com/jgm/djot

#kde #djot #pandoc #markdown

Last updated 1 year ago

@frebtherat @ednico @post @logseq

Also, if we replace with (that is almost the same) we could use Djot's syntax for comments (as in programming languages) to have -specific metadata hidden when exporting/rendering Djot files, as shown here:

pkm.social/@alexl/110651549732

and here:

pkm.social/@alexl/110651586386

#markdown #djot #logseq

Last updated 1 year ago

@ebiester

Also here there is how I'd implement queries in so that they fallback to monospace text in other apps:

`Query title`{% query (and [[foo]] [[bar]] %}

#logseq #djot

Last updated 1 year ago

People loves because it is everywhere, but technically comes with a big set of problems, including different flavours and ambigous cases.

A better alternative is by the author of :

github.com/jgm/djot

#markdown #djot #pandoc

Last updated 1 year ago

Mike Kasprzak ๐Ÿฆ– · @mike
1070 followers · 1055 posts · Server jammer.social

Sooooo in that case, there's really only one thing missing from to make it a drop-in replacement for our bastardization of CommonMark: GFM Autolinks.

github.github.com/gfm/#autolin

That and spoilers. ๐Ÿ˜‹

#djot

Last updated 1 year ago

Mike Kasprzak ๐Ÿฆ– · @mike
1070 followers · 1054 posts · Server jammer.social

For context, I was foiled by . ๐Ÿ˜…

I forgot that had an HTML title attribute syntax. i.e. [link name](https://link.url "link title"). Djot has this too, but it's generalized in their {attribute=value} syntax. I was tempted to add the classic syntax to djot, but in hindsight it's not very useful.

So, bold new idea: What if "link title" syntax was used for alt text? Accessibility is important, right?

Well, I forgot that images already have it: ![alt text](https://image.url). ๐Ÿคฆโ€โ™‚๏ธ

#djot #commonmark

Last updated 1 year ago

Mike Kasprzak ๐Ÿฆ– · @mike
1068 followers · 1000 posts · Server jammer.social

I need to run a quick errand, but when I return I'm going to run some experiments with (which BTW is from the same author ).

The only blocker on migrating the legacy data over is what to do with all the HTML content. If Pandoc can `.md` it, that's huge. ๐Ÿ˜ƒ

Part of me wants to go directly from to Djot, but if I'm a good boy I'll stick with HTML to , then do a massive Markdown to Djot port a different day. ๐Ÿ˜‹

#pandoc #djot #ldjam #html #markdown

Last updated 1 year ago

Mike Kasprzak ๐Ÿฆ– · @mike
1067 followers · 993 posts · Server jammer.social

(Also, holy shit, I just discovered , a universal document converter from the creator of ! I need to run some tests, but this might be something I can use to convert the old HTML blog post data into Commonmark! OMG, I was dreading having to write my own tool. ๐Ÿ˜†)

#pandoc #djot #ldjam

Last updated 1 year ago

Mike Kasprzak ๐Ÿฆ– · @mike
1067 followers · 992 posts · Server jammer.social

is awesome. โค๏ธ

Stop using Markdown and Commonmark!!

Djot is mostly compatible, removes ambiguity, it's designed to be easier to optimize, and is far more flexible/extendable for document authors.

djot.net

#djot

Last updated 1 year ago

Mike Kasprzak ๐Ÿฆ– · @mike
1065 followers · 990 posts · Server jammer.social

Me toying with the parser, trying things that typical Markdown/Commonmark doesn't let you do.

#djot

Last updated 1 year ago

Mike Kasprzak ๐Ÿฆ– · @mike
1065 followers · 989 posts · Server jammer.social

Playground: djot.net/playground/

Summary of , an improved alternative to and .

#djot #markdown #commonmark

Last updated 1 year ago

Mike Kasprzak ๐Ÿฆ– · @mike
1065 followers · 988 posts · Server jammer.social

In a thread on text formatting, I found casually mentioned (then ignored) as a recommended /#Commonmark alternative.

I think I'm sold.

IMO it's better designed (single * for bold), removes ambiguity (# headers only), while being mostly compatible with Markdown/Commonmark.

github.com/jgm/djot

#djot #markdown

Last updated 1 year ago

Adriรกn Arroyo Calle · @aarroyoc
46 followers · 297 posts · Server mstdn.io

A nice feature of Djot, in contrast to Markdown, is that it allows defining attributes for the language elements. This way you can modify the output of a certain "shortcut" in a easy way. Now Djota allows that too!

#prolog #djot

Last updated 2 years ago

Peter Bronez · @PeterBronez
17 followers · 87 posts · Server hachyderm.io

@javajoint which flavor of to you plan to use, and with which processor for your ? Looks like might be the latest & greatest ๐Ÿ‘‰djot.net/ Seems like it's John MacFarlene's Commonmark 2.0... implements ideas from johnmacfarlane.net/beyond-mark

#markdown #ebook #djot

Last updated 2 years ago

Pierre-Amiel Giraud · @insolit
360 followers · 603 posts · Server toot.aquilenet.fr

@pandoc I just read the specs. seems well thought and conceived (it's no surprise when you look where it comes from), making it a very relevant alternative for in a wide array of usecases. I think it can become quite soon my new prefered format. I only wonder about the rationale that drove to omit a markup for bibliographical references.

#markdown #djot

Last updated 2 years ago

Celfred · @celfred
259 followers · 559 posts · Server framapiaf.org

Je dรฉcouvre le Djot. Lancรฉ en juillet 2022 par l'auteur de Pandoc John McFarlane. C'est un langage de balisage lรฉger dans le style de Markdown. Sur le site, on trouve tout ce qu'il faut pour que Pandoc puisse utiliser le Djot.

Djot
djot.net/

#shaarli2mastodon #djot #markdown #pandoc

Last updated 2 years ago