From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Petton Subject: Re: [PATCH] org-rss-headline Date: Tue, 13 Jan 2015 20:42:57 +0100 Message-ID: <87k30qsbzy.fsf@petton.fr> References: <87ppaisgbe.fsf@petton.fr> <87mw5miiwy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB7Ml-0003VG-QD for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 14:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB7Mi-0002BQ-CY for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 14:43:03 -0500 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:49178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB7Mi-0002B3-54 for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 14:43:00 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 89A4F2F24 for ; Tue, 13 Jan 2015 14:42:59 -0500 (EST) In-reply-to: <87mw5miiwy.fsf@nicolasgoaziou.fr> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Nicolas Petton , Org-mode Org-Mode Nicolas Goaziou writes: > Hello, > > Nicolas Petton writes: > >> I'm a happy user of ox-rss.el, but was annoyed the other day when I >> wanted to export an article with a headline containing markup. > > What problem did you encounter? If the headline contains *bold* text for example, the RSS item title will have the extras * characters, since it's using the :raw-value. > >> The problem is that org-rss-headlines uses the raw-value of the headline >> to export the title, which could contain any markup. > > Actually, an export back-end isn't expected to use :raw-value. > > One way to handle this is to create an anonymous export back-end that > strips unwanted objects, or export them differently (e.g., a link is > exported as its description, if any, or its path). See, for example > `org-html--format-toc-headline'. > >> Here's a patch that uses the :EXPORT_TITLE property if present, >> :raw-value if not. > > :EXPORT_TITLE is meant to replace #+TITLE: during a subtree export. > There is ALT_TITLE property, but this is usually used in table of > contents. Ok. What about an :RSS_TITLE property? Or should I have a look at `org-html--format-toc-headline' and submit a different patch? Nico -- Nicolas Petton http://nicolas-petton.fr