From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: ox-confluence.el: omit radio target links (that end up being dead links) Date: Tue, 17 Mar 2020 19:19:43 +0100 Message-ID: <2020-03-17T19-17-46@devnull.Karl-Voit.at> References: <2020-03-17T16-02-16@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50263) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEGoj-0006IB-Cy for emacs-orgmode@gnu.org; Tue, 17 Mar 2020 14:19:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEGoi-0008QC-6y for emacs-orgmode@gnu.org; Tue, 17 Mar 2020 14:19:53 -0400 Received: from ciao.gmane.io ([159.69.161.202]:33284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jEGoh-0008FV-Vn for emacs-orgmode@gnu.org; Tue, 17 Mar 2020 14:19:52 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jEGof-000HkH-Ub for emacs-orgmode@gnu.org; Tue, 17 Mar 2020 19:19:49 +0100 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi, * Karl Voit wrote: > > As stated on [1] I do have an issue with export to Confluence markup > via org-mode/contrib/lisp/ox-confluence.el and radio targets[2]. > > When I am using a snippet like: > >| - <> :: this is the explanation to this weird term >| >| [...] >| >| Please respect the foo bar everyhere. > > ... it gets exported like that: > >| - *foo bar* - this is the explanation to this weird term >| >| [...] >| >| Please respect the [foo bar|foo bar] everyhere. > > These "[foo bar|foo bar]" snippets are then interpreted by > Confluence as links to the Confluence pages named "foo bar" which > usually don't exist. > > I think it would be a good improvement to ignore radio links in the > ox-confluence output. Meanwhile, somebody posted a fix on [1]: (defun export-radio-links-as-plain-text (link desc info) (when (string= "radio" (org-element-property :type link)) desc)) (advice-add #'org-confluence-link :before-until #'export-radio-links-as-plain-text) Maybe this is a good idea to include this in the official source code? > [1] https://www.reddit.com/r/emacs/comments/fk5z1b/how_to_remove_foo_barfoo_bar_links_via/ > I'm asking how to search/replace current expressions as a > short-term workaround. > > [2] https://orgmode.org/manual/Radio-Targets.html -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/