[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exporting elisp: and shell: links
From: |
Ihor Radchenko |
Subject: |
Re: Exporting elisp: and shell: links |
Date: |
Mon, 09 Oct 2023 12:12:30 +0000 |
Max Nikulin <manikulin@gmail.com> writes:
>> +(defun org-link--export-code (path description _ info &optional lang)
>
> I think, the fragment above should be a public function that is a
> building block for users who want to override export of links having
> descriptions.
Sure, but that's minor.
>> + (when description (format " (%s)" description))))
>
> I hope, path was never added as default description, so checks (or
> (string-equal path description) (string-equal (concat type ":" path)
> description))) are not necessary to avoid annoying repetitions.
Valid, but I am more concerned about the whole idea. I _feel_ that
code (description)
does not look nice in html export. I like more how ox-ascii (without the
proposed diff) handles the situation via footnote-like link.
That's my personal preferences though. Which is why I want to hear more
opinions. In particular, I encourage others to play around with various
exported documents with and without the diff and comment on how they
look.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Re: Exporting elisp: and shell: links, Rudolf Adamkovič, 2023/10/11