emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] blorg.el


From: Rick Moynihan
Subject: Re: [Orgmode] blorg.el
Date: Tue, 19 Feb 2008 10:18:37 +0000
User-agent: Thunderbird 2.0.0.9 (X11/20071031)

Bastien Guerry wrote:
What about a simple dynamic block ?

(defun org-dblock-write:youtube (params)
  "Insert a header from a file."
  (let ((url (plist-get params :url)))
(insert (format "<object width=\"425\" height=\"355\"><param name=\"movie\"
value=\"%s\"></param><param name=\"wmode\"
value=\"transparent\"></param><embed src=\"%s\"
type=\"application/x-shockwave-flash\" wmode=\"transparent\"
width=\"425\" height=\"355\"></embed></object>" url url))))

#+BEGIN: youtube :url "http://www.youtube.com/watch?v=fu8rAWciQNs";
#+END:
Should expand in the correct block of text.

Hi, my apologies again for taking so long to getting round to trying this. But there appear to be some problems.

I can get the above block to expand into the following text:

#+BEGIN: youtube :url "http://www.youtube.com/watch?v=fu8rAWciQNs";
<object width="425" height="355"><param name="movie"
value="http://www.youtube.com/watch?v=fu8rAWciQNs";></param><param
name="wmode" value="transparent"></param><embed
src="http://www.youtube.com/watch?v=fu8rAWciQNs";
type="application/x-shockwave-flash" wmode="transparent" width="425"
height="355"></embed></object>
#+END:

But the problem appears to be that the URL which appears twice in the block isn't inserted literally but is instead expanded into an <a href=""> in the source when M-x blorg-publish is run e.g:

<object width="425" height="355"><param name="movie" value="<a
href="http://www.youtube.com/watch?v=fu8rAWciQNs"";>watch?v=fu8rAWciQNs"</a>></param><param
name="wmode"
value="transparent"></param><embed src="<a
href="http://www.youtube.com/watch?v=fu8rAWciQNs"";>watch?v=fu8rAWciQNs"</a>

Is there a way to disable this when inside dynamic blocks?

Thanks again,

R.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]