From: c.buhtz@posteo.jp
To: Emacs orgmode <Emacs-orgmode@gnu.org>
Subject: Re: asterisk allowed for list items
Date: Fri, 29 Apr 2022 12:17:24 +0000 [thread overview]
Message-ID: <6e72ad426d60c28dbc4d0d3f45816834@posteo.de> (raw)
In-Reply-To: <78aed94a0114fd29322e6da7581161ec@posteo.de>
I need to add something here and think the syntax description should be
updated about that.
A "*" is allowed or recognized as a list item instead as a head only if
there is one (or maybe more) whitespace space in front of it.
But "-" and "+" also recognized as starts for list items without any
trailing whitespace in front of them.
Sidenote: As someone who writes software that parse org-content I would
suggest to make the whitespace in front of a list item mandatory even
for "-" and "+". It would reduce code complexity.
Am 29.04.2022 13:53 schrieb c.buhtz@posteo.jp:
> I was looking into https://orgmode.org/worg/dev/org-syntax.html#Items
> to find out which characters are allowed as "bullets" for unorderd
> lists.
>
> I cite from there
> "An asterisk, hyphen, or plus sign character (i.e., *, -, or +)."
>
> I wonder why * is allowed because * also starts a heading. So how does
> a piece of software/parser decide if a line starting with an * is a
> heading or a list item?
next prev parent reply other threads:[~2022-04-29 12:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-29 11:53 asterisk allowed for list items c.buhtz
2022-04-29 12:15 ` Ihor Radchenko
2022-04-29 12:21 ` c.buhtz
2022-04-29 13:49 ` Ihor Radchenko
2022-04-29 14:26 ` c.buhtz
2022-04-30 5:37 ` Ihor Radchenko
2022-04-29 12:17 ` c.buhtz [this message]
2022-04-29 13:04 ` Detlef Steuer
2022-04-29 13:22 ` c.buhtz
2022-04-29 13:59 ` Ihor Radchenko
2022-04-29 13:54 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6e72ad426d60c28dbc4d0d3f45816834@posteo.de \
--to=c.buhtz@posteo.jp \
--cc=Emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).