emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Husain Alshehhi <husain@alshehhi.io>
To: emacs-orgmode@gnu.org
Subject: Org-mode ASCII Export to support numbered references for links
Date: Mon, 13 Dec 2021 01:56:02 +0000	[thread overview]
Message-ID: <877dc9clou.fsf@alshehhi.io> (raw)

Org-mode's ascii export uses the link's description to create a reference to it at the end of the document. For example, a link to google will look like this:

,----
| This is a [link to google].
|
| [link to google] <https://www.google.com>
`----

Is there a way to modify this behavior to using a number reference rather than link description? Such as:

,----
|
| This is a link to google[1].
|
| [1] <https://www.google.com>
`----

The reasoning behind this is that using numbers is more intuitive (as it is the common practice it plain text posts, emails etc.) Also, when there are two different links with the same description, the export is going to be confusing to the reader. This happens when I use the description "link".



             reply	other threads:[~2021-12-13  1:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-13  1:56 Husain Alshehhi [this message]
2021-12-13  2:27 ` Org-mode ASCII Export to support numbered references for links Samuel Wales
2021-12-13  2:30   ` Samuel Wales
2021-12-19  4:55     ` Husain Alshehhi
2021-12-19  4:52   ` Husain Alshehhi

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=877dc9clou.fsf@alshehhi.io \
    --to=husain@alshehhi.io \
    --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).