emacs-orgmode
[Top][All Lists]
Advanced

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

Re: How to tell `org-html-link' to create a link with some HTML class?


From: Max Nikulin
Subject: Re: How to tell `org-html-link' to create a link with some HTML class?
Date: Tue, 20 Jun 2023 23:30:32 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 20/06/2023 11:42, Marcin Borkowski wrote:

as I mentioned some time ago, I'm writing a custom exporter (actually,
a very thin wrapper around the HTML exporter).  I'd like `org-html-link'
to add some class to the links it generates.  Is that possible?

I do not have a ready to use recipe. Some links to mailing list threads:

https://list.orgmode.org/t8q71r$mgv$1@ciao.gmane.io/
Max Nikulin. [BUG] manual: confusing example of adding attributes to a link (affiliated keywords) Mon, 20 Jun 2022 23:25:29 +0700

Unfortunately

#+attr_html: :class something

adds class to the whole following paragraph as well. Notice a link to a John Kitchin blog post. Another thread with the same link:

https://list.orgmode.org/87im8k3be8.fsf@posteo.net/
Juan Manuel MacĂ­as. Re: [tip] Export subfigures to LaTeX (and HTML). Tue, 29 Dec 2020 16:00:31 +0100

I have not tried to implement an idea with a parse-tree export filter that transfers attributes from links having a custom type to following objects (Ihor is against such approach):

Max Nikulin. Re: About 'inline special blocks' Tue, 24 May 2022 22:09:33 +0700. https://list.orgmode.org/t6isfe$c50$1@ciao.gmane.io





reply via email to

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