Hi Rick, Rick Moynihan <[EMAIL PROTECTED]> writes:
> I've been meaning to mention that blorg produces invalid XML for atom feeds > (perhaps also RSS/HTML). Most obviously it doesn't appear to entity escape > characters the following characters properly '<', '>', '&', which should be > rendered as > < and & respectively. Trying to fix this is dangerous, it might break other things. If the issue is just XML validation, I won't do it for now - sorry. > Also I think <img> tags aren't closed properly, i.e. they're rendered as > > <img src="foo.jpg"> > > rather than the correct: > > <img src="foo.jpg"/> Fixed in 0.75d. > Another issue I have, is that sometimes when calling blorg-publish it > doesn't render links properly, i.e. [[http://foo.com/][foo]] will be > displayed in the HTML/XML rather than: > > <a href="http://foo.com">foo</a> > > This doesn't always happen, but seems to occur when either: > > - you run blorg-publish without a C-u prefix argument. > - or, you have an orglink which runs across a line break, e.g. > > [[http://foo.com/]| <--- newline > [foo]] (Of course, blorg should use Org's HTML converter. This is in the plan for the next org-based blogging system, so I'm not willing to try fixing this neither...) > Also, it'd be great if there was a way to easily embed flash video content > onto the pages, by using custom links, e.g. > > [[youtube:http://www.youtube.com/watch?v=fu8rAWciQNs]] > > Which would be expanded into the appropriate embeded object: > > <object width="425" height="355"><param name="movie" > value="http://www.youtube.com/v/fu8rAWciQNs&rel=1"></param><param > name="wmode" value="transparent"></param><embed > src="http://www.youtube.com/v/fu8rAWciQNs&rel=1" > type="application/x-shockwave-flash" wmode="transparent" width="425" > height="355"></embed></object> 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. HTH, -- Bastien _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode