From: Uwe Brauer <oub@mat.ucm.es>
To: "Juan Manuel Macías" <maciaschain@posteo.net>
Cc: Uwe Brauer <oub@mat.ucm.es>, orgmode <emacs-orgmode@gnu.org>
Subject: Re: http links translated to html : target "_blank"
Date: Mon, 01 Feb 2021 16:20:08 +0100 [thread overview]
Message-ID: <87y2g7ak7r.fsf@mat.ucm.es> (raw)
In-Reply-To: 87h7mvdevx.fsf@posteo.net
[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]
>>> "JMM" == Juan Manuel Macías <maciaschain@posteo.net> writes:
> Hi Uwe,
> Uwe Brauer <oub@mat.ucm.es> writes:
>> Thanks that works, but not for link in a list. The only solution
>> seems to be this one
> Doesn't it work for you in a list? I think it should work also in a
> list. If I export this:
> #+begin_src org
> ,#+BIND: org-export-filter-final-output-functions (correct-target-blank)
> ,#+begin_src emacs-lisp :exports results :results none
> (defun correct-target-blank (text backend info)
> (when (org-export-derived-backend-p backend 'html)
> (replace-regexp-in-string "%20target=%22_blank%22\"" "\" target=\"_blank\"" text)))
> ,#+end_src
> + [[https://www.amazon.es/Rocketbook-Everlast-Notebook-riutilizzabile-Esecutivo/dp/B071Y3MSRK/ref=sr_1_5?__mk_es_ES=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=Rocketbook&qid=1607847519&sr=8-5&th=1 target="_blank"][Book A4]]
> + [[https://www.amazon.es/Rocketbook-Everlast-Notebook-riutilizzabile-Esecutivo/dp/B071Y3MSRK/ref=sr_1_5?__mk_es_ES=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=Rocketbook&qid=1607847519&sr=8-5&th=1 target="_blank"][Book A4]]
> #+end_src
> I get this:
That is odd (maybe my org version is a bit rusty (master june 2020)
I obtain this:
<ul class="org-ul">
<li><a href="https://www.amazon.es/Rocketbook-Everlast-Notebook-riutilizzabile-Esecutivo/dp/B071Y3MSRK/ref=sr_1_5?__mk_es_ES=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=Rocketbook&qid=1607847519&sr=8-5&th=1%20target=%22_blank%22">Book A4</a></li>
<li><a href="https://www.amazon.es/Rocketbook-Everlast-Notebook-riutilizzabile-Esecutivo/dp/B071Y3MSRK/ref=sr_1_5?__mk_es_ES=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=Rocketbook&qid=1607847519&sr=8-5&th=1%20target=%22_blank%22">Book A4</a></li>
</ul>
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
next prev parent reply other threads:[~2021-02-01 15:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-01 9:10 http links translated to html : target "_blank" Uwe Brauer
2021-02-01 11:03 ` Juan Manuel Macías
2021-02-01 13:56 ` Uwe Brauer
2021-02-01 14:46 ` Juan Manuel Macías
2021-02-01 15:20 ` Uwe Brauer [this message]
2021-02-01 21:01 ` Juan Manuel Macías
2021-02-04 14:07 ` Uwe Brauer
2021-02-01 11:59 ` TEC
2021-02-01 13:30 ` Uwe Brauer
2021-02-01 13:52 ` TEC
2021-02-01 13:56 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2g7ak7r.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
--cc=maciaschain@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.