emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [ox-ascii, bug?] links are wrapped in [·]
@ 2015-03-05 23:26 Rasmus
  2015-03-06 10:58 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus @ 2015-03-05 23:26 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Try the following:

(with-temp-buffer
  (require 'ox-ascii)
  (insert "http://orgmode.org")
  (org-ascii-export-as-ascii nil nil nil t))

This will output [http://orgmode.org].  I don't think that www-links
should be treated the same as "random links" here.  Maybe we could check
the raw link against a regexp for hyperlinks?

—Rasmus

-- 
One thing that is clear: it's all down hill from here 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ox-ascii, bug?] links are wrapped in [·]
  2015-03-05 23:26 [ox-ascii, bug?] links are wrapped in [·] Rasmus
@ 2015-03-06 10:58 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-03-06 10:58 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> writes:

> Try the following:
>
> (with-temp-buffer
>   (require 'ox-ascii)
>   (insert "http://orgmode.org")
>   (org-ascii-export-as-ascii nil nil nil t))
>
> This will output [http://orgmode.org].  I don't think that www-links
> should be treated the same as "random links" here.  Maybe we could check
> the raw link against a regexp for hyperlinks?

This is a feature. Every link is put into square brackets. You can
easily remove them with a filter, using `org-plain-link-re'.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-06 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-05 23:26 [ox-ascii, bug?] links are wrapped in [·] Rasmus
2015-03-06 10:58 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).