Comments (12)
If we do this I prefer #.
, because .
looks too much like a bullet list in the source.
from djot.
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.
You can already do
1. one
1. another
1. another
Only the first number in the sequence is significant.
from djot.
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.
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.
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.
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.
I'll consider it.
from djot.
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.
I see that 0.
works as well.
from djot.
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.
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)
- Standalone attributes HOT 6
- Attribute references HOT 4
- Playground should provide examples
- Tables with a column of th elements HOT 1
- Typo in syntax.md
- Proposal: Punctuation Character for Code Block's language specifier HOT 6
- Playground: slow on Safari HOT 5
- Supporting “commands” in addition to “classes” in attributes? HOT 2
- Hard-wrapping: require subsequent lines to be indented/quoted? HOT 6
- Two asterisks for “strong”? HOT 3
- Inline footnotes?
- Support `<dfn>`, `<cite>` and `<i>`? HOT 2
- Parsing inconsistency: lazy paragraph lines in lists HOT 4
- The closing delimiter of a div block can interrupt a paragraph HOT 4
- Should block attributes mark a div block delimiter as opening? HOT 1
- section nesting for non-consecutive heading levels HOT 1
- [Proposal] more permissive definition of allowed symbol syntax HOT 43
- [Proposal] Remove leading whitespace HOT 2
- Allow any valid HTML4 identifier string to be a djot identifier string HOT 2
- Allow underscore in task list to denote unchecked item HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djot.