From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to change the export semantics of the property-drawer? Date: Fri, 15 Sep 2017 22:02:42 +0200 Message-ID: <877ewzbuhp.fsf@nicolasgoaziou.fr> References: <87y3pfyhi5.fsf@personal> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dswp8-0004Gs-9i for emacs-orgmode@gnu.org; Fri, 15 Sep 2017 16:02:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dswp5-00011A-51 for emacs-orgmode@gnu.org; Fri, 15 Sep 2017 16:02:50 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:50973) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dswp4-0000zu-Uy for emacs-orgmode@gnu.org; Fri, 15 Sep 2017 16:02:47 -0400 In-Reply-To: <87y3pfyhi5.fsf@personal> (Eduardo Bellani's message of "Fri, 15 Sep 2017 14:54:42 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Eduardo Bellani Cc: emacs-org list Hello, Eduardo Bellani writes: > I am trying to export the property-drawer as a description list on an > html derived backend, but I'm afraid I got stuck after some effort in > it. > > Basically, I wanted this: > > ,---- > | * Some > | :PROPERTIES: > | :CUSTOM_ID: 123 > | :END: > `---- > > To be exported *as if* it was this > > ,---- > | * Some > | - custom_id :: 123 > `---- > > The problem I am facing is, how to resolve links in properties? The > example below illustrates the maximum point I've reached in my efforts > > If someone can point me to a path, I'll be happy to follow it. I would use a tree filter that transforms property drawers into description lists right in the parse tree. If you know a value is a link, you can use `org-element-parse-secondary-string' on it. Regards, -- Nicolas Goaziou