Max Nikulin <maniku...@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>