Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of Org-mode link translation?

Tags:

emacs

org-mode

I write articles with org-mode, It works very well. But I found a very annoying problem.

I post my article to some forum, also I have a lot of pics to post.

I use IMG code to post the pictures.

eg. [IMG]http://abc.com/a.jpg[/IMG]

I export my org file to ascii or html or anything else formant, Org-mode always make "http" special. It export like this:

[IMG][http://abc.com/a.jpg[/IMG]]

between "http", There are always a pair of "[". Every time I have to remove this myself.

I wish Org-mode do not handle http string.

Any idea?

like image 426
textpattern Avatar asked Apr 28 '11 01:04

textpattern


1 Answers

Org mode actually parses that particular markup poorly (with the square brackets). If your image links are on a separate line, for example between paragraphs, you can use some markup to disable org formatting:

#+BEGIN_EXAMPLE
[IMG]http://abc.com/a.jpg[/IMG]
#+END_EXAMPLE

A shorthand for this is simply to start the line with a colon followed by a space:

: [IMG]http://abc.com/a.jpg[/IMG]
like image 143
R. P. Dillon Avatar answered Sep 28 '22 14:09

R. P. Dillon