emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] convert region to html?


From: David O'Toole
Subject: Re: [Orgmode] convert region to html?
Date: Mon, 21 May 2007 11:00:51 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

super! thanks for this Carsten, i will test it when it is released and
see if i can get my org-blog.el working properly. I have had the urge
to blog a lot lately but haven't had an outlet :-)

> Thanks for this idea, will be useful for many things.
>
> - Carsten
>
> 4.75 will contain the following function:
>
> (defun org-export-region-as-html (beg end &optional body-only buffer)
>   "Convert region fron BEG to END in org-mode buffer to HTML.
> If prefix arg BODY-ONLY is set, omit file header, footer, and table of
> contents, and only produce the region of converted text, useful for
> cut-and-paste operations.
> If BUFFER is a buffer or a string, use/create that buffer as a target
> of the converted HTML.  If BUFFER is the symbol `string', return the
> produced HTML as a string and leave no buffer behind.  For example,
> a Lisp program could call this function in the following way:
>
>   (setq html (org-export-region-as-html beg end t 'string))
>
> When called interactively, the output buffer is selected, and shown
> in a window.  A non-interactive call will only retunr the buffer."
>
>
>
>

-- 
David O'Toole 
address@hidden
http://dto.freeshell.org/notebook/




reply via email to

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