[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: http links translated to html : target "_blank"
From: |
Uwe Brauer |
Subject: |
Re: http links translated to html : target "_blank" |
Date: |
Mon, 01 Feb 2021 14:56:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> "JMM" == Juan Manuel Macías <maciaschain@posteo.net> writes:
Hola Juan
> I think the problem is how the exporter understands the url string.
> Note that this:
> @@html:<a href="https://www.mpic.de/4747361/risk-calculator"
> target="_blank">Simulador de riesgo con más detalle</a>@@
> [[https://www.mpic.de/4747361/risk-calculator target="_blank"][Simulador de
> riesgo con más detalle]]
> is exported like this:
> <p>
> <a href="https://www.mpic.de/4747361/risk-calculator"
> target="_blank">Simulador de riesgo con más detalle</a>
> </p>
> <p>
> <a
> href="https://www.mpic.de/4747361/risk-calculator%20target=%22_blank%22">Simulador
> de riesgo con más detalle</a>
> </p>
> The second link is wrong formatted. A dirty solution could be:
> #+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
> Best regards,
Thanks that works, but not for link in a list. The only solution
seems to be this one
#+attr_html: :target _blank
[[https://www.zeit.de/wissen/gesundheit/2020-11/coronavirus-aerosols-infection-risk-hotspot-interiors][Risk
simulator]]
#+attr_html: :target _blank
[[https://www.mpic.de/4747361/risk-calculator][Risk simulator with more
details]]
1. RocketBook
+ Book A4
#+attr_html: :target _blank
[[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][Book
A4]]
a. Book A4
#+attr_html: :target _blank
[[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][Book
A4]]
smime.p7s
Description: S/MIME cryptographic signature
Re: http links translated to html : target "_blank", TEC, 2021/02/01