Giter VIP home page Giter VIP logo

Comments (12)

jgm avatar jgm commented on August 23, 2024 4

If we do this I prefer #., because . looks too much like a bullet list in the source.

from djot.

waldyrious avatar waldyrious commented on August 23, 2024 3

Would the people who want something like this be happy with 0.?

I'd rather see = used for headings and reserving # for numbered lists. The practical downside is that the more we deviate from markdown, the harder the adoption of Djot will be, but on the other hand, besides MediaWiki and other lightweight markup languages using = for headings, even markdown supports the symbol associated with headings, particularly in setext-style headings.

from djot.

jgm avatar jgm commented on August 23, 2024 1

You can already do

1. one
1. another
1. another

Only the first number in the sequence is significant.

from djot.

leroycep avatar leroycep commented on August 23, 2024 1

Asciidoc also has this feature. It allows you to make ordered lists with just a period, like so:

Ordered list:

. One
. Two
. Three

from djot.

mtsknn avatar mtsknn commented on August 23, 2024 1

Asciidoc [...] allows you to make ordered lists with just a period

One benefit of using just a period instead of 1. or #.: proper indentation for the list item's body would be 2 spaces (nice) instead of 3 spaces (weird). But this syntax (just a period) would probably work only with the "1." list marker type.

from djot.

jgm avatar jgm commented on August 23, 2024 1

I agree that there's some danger of visually confusing #. with a heading.

Of course there might be an argument for changing the heading syntax to use = instead of # -- that is also a strong tradition in light markup.

Would the people who want something like this be happy with 0.?

from djot.

tbdalgaard avatar tbdalgaard commented on August 23, 2024

Ok, I am just very used to the way Pandoc can show this, so I thought this syntax looks better, and I like that items can be sequenced like how Pandoc can do this. I understand that DJOT isn't Pandoc at all, I just thought this syntax is easier when reading and composing the document.

from djot.

jgm avatar jgm commented on August 23, 2024

I'll consider it.

from djot.

waldyrious avatar waldyrious commented on August 23, 2024

Plus there's precedent for # as numbered list markup, e.g. in MediaWiki. Though I do wonder if it could be confusing to have such a similar syntax to that used for headings meaning something completely different when a period is involved.

from djot.

uvtc avatar uvtc commented on August 23, 2024

I see that 0. works as well.

from djot.

tbdalgaard avatar tbdalgaard commented on August 23, 2024

I wouldn't mind making two spaces after the list marker like
#. {space {space}
I have never liked the use of = for headings. I think the # in for defining headers is easier to read.
Note: I am one of the people who really loves the idea behind DJOT, but aren't smart enough to code anything... I just love to markup text with options like DJOT. :)

from djot.

stoicon avatar stoicon commented on August 23, 2024

What about using $ for an ordered list?

$ One
$ Two
$ Three

$ is already used in Mathematical and numerical contexts (LaTeX math and currency).

from djot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.