emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FR] stable literal hrefs in HTML export of direct links and usage of li


From: Gregor Zattler
Subject: [FR] stable literal hrefs in HTML export of direct links and usage of link description instead of numbered links in case of shortend link syntax
Date: Tue, 20 Aug 2024 17:04:32 +0200

Dear org-mode developers, this is
a twofold feature request:

I write a piece documentation with a
glossary in form of a description list
and want to able to link to the
descriptions.  The thing is then
exported to HTML.

The only way to do that I found was with
direct links, but this

1. does not allow for stable hrefs
2. and numbers the link text if the
   abbreviated org link syntax [[link]]
   is used:


This

  An Emacs [[frame]] may be
  opened...

  - <<frame>> frame :: This is ancient
    terminology...


This renders into (among other things):

<div id="content" class="content">
<p>
An Emacs <a href="#orgc6125eb">1</a> may be
opened&#x2026;
</p>

<dl class="org-dl">
<dt><a id="orgc6125eb"></a> frame</dt><dd>This is ancient
terminology&#x2026;</dd>
</dl>
</div>


Since in the org-mode document the
author has to care for the
unambiguousness of the link anyway I
would expect:

1. that instead of a random id the link
   description is used as a href and
   therefore be stable between different
   exports, and
2. the link description is used instead
   of a number in case of a shortened
   [[link]].


The second effect does not show up, if
[[link][link]] is used instead of
[[link]] but this  is tedious to type
and IMHO unneccesary.

If this feature request are not / cannot
be met: Is there a workaround to at
least achive the goal of stable href
links?

Thanks for org-mode and your attention, Gregor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]