Replies: 3 comments 5 replies
-
I don't quite understand what your criticism is with numbered lists: maybe you could explain more fully what you think djot could do better? Tables: asciidoc tables are optimized for writing, not reading, so that goes against the Markdown spirit. The advantage is that they are better suited for non-simple tables. We definitely need a more flexible table syntax in djot. One idea is to allow list tables. There are also ideas floating around in the commonmark discussion group for more flexible pipe tables. |
Beta Was this translation helpful? Give feedback.
-
List tables could work or even better the Wikipedia syntax that you are proposing, as it doesn't use English words by default (something that, as a non-native English speaker I value a lot of your design choices, @jgm, regarding markup syntax). What I don't like about Markdown numbered list, can be explained better with a code example:
creates the same result as:
And that:
All of them produce, when rendered:
So, reading the source code is kind of a constant numeric reminder that numbers don't matter. I would like to point that with a non-numeric symbol. Something like:
Should produce the same output as a numbered list started in 1 and followed by the next consecutive numbers (
should indicate a numbered list starting in a particular value. |
Beta Was this translation helpful? Give feedback.
-
I like the current/Markdown syntax/behavior, because you can both keep your items numbered while editing and insert new items/rearrange items between the existing ones and not renumber every item without upsetting the numbering in the rendered document. Things like 1. first
01. inserted later
001. used to be 4
2. second
02. also inserted later
3. third
5. fifth are not rare while I'm editing. Pandoc IMO does the Right Thing rendering that as a straight 1–7 list.1 As for markers without digits I often edit longish YAML lists, and the lack of numbering can make me disoriented. Perhaps not "globally" (as in doesn't matter) but certainly "locally". For the same reason I make all lists of some length numbered when writing prose. Footnotes
|
Beta Was this translation helpful? Give feedback.
-
Hi all,
First post over here and long time Pandoc's user/admirer.
I really share Djot's design goals and recently I was talking about it and its shared design sensibilities with Microdown in the Pharo mailing list (4th message in this thread).
As Djot tries to learn the lessons from Markdown, while not being limited by its shortcomings and creating a less complex format/parsers, I wonder if maybe my suggestion is out of scope or its conflicting with the simplicity goal. Anyway, given that this is a new format, it may be open to changes about a couple of features that I find painful in Markdown/CommonMark: numbered list and tables. I'll elaborate further.
I find Markdown's numbering list counter intuitive when reading the code because, If the number is repeated, it will keep the counter increasing, and if a numbered list is going to increase the counter and non numeric symbol should be used -- let's say
~
, or¬
, as*
,-
,+
and all numbers are already taken by Markdown for (non-)numbered lists. Sometimes, I'm reading the source code of a Markdown file and seeing a number repeated or non-sequential is an oxymoronic "numeric" reminder that I should not care about the list numbers!Tables are mostly a pain to write/read in plain text editors without smart edition support (like OrgMode/NeoVim). Something like AsciiDoc tables should be better or anything that allows multiline cell writing in plain text. I wonder if a syntax like that could be implemented in Djot using its conventions (see example below, but I don't know if this is Djotish enough, correct or if it would require look ahead parser implementations)
Of course, dealing with Markdown pain points, while being familiar and simple to write/read is a delicate balance
Beta Was this translation helpful? Give feedback.
All reactions