emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* convert region to html?
@ 2007-05-19  1:17 David O'Toole
  2007-05-20  2:27 ` Michael Olson
  2007-05-20 15:17 ` Carsten Dominik
  0 siblings, 2 replies; 7+ messages in thread
From: David O'Toole @ 2007-05-19  1:17 UTC (permalink / raw)
  To: emacs-orgmode


I am working on my blog extension for org-publish. I would like to
convert a region of text (say, between two markers) from org-mode
markup into html and then paste the resulting html into another buffer
where I am building a full page. I need to do this from a lisp
program. It says that org-export-as-html will export an active region
but I tried it and it doesn't work in a temp-buffer where
(buffer-file-name) is nil. Anyway, would it be hard to expose a
function like the following?

(defun org-export-region-to-html (beg end)
  "Convert region between BEG and END into HTML, placing the result
  into a new buffer. The new buffer is returned."
  ...
  ...
      

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

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

end of thread, other threads:[~2007-05-31 15:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-19  1:17 convert region to html? David O'Toole
2007-05-20  2:27 ` Michael Olson
2007-05-20 15:17 ` Carsten Dominik
2007-05-21  6:56   ` Giovanni Ridolfi
2007-05-21 15:00   ` David O'Toole
2007-05-30 13:17   ` org-blog.el updated to v1.17 David O'Toole
     [not found]     ` <465DB53B.3030209@calicojack.co.uk>
     [not found]       ` <m3myzlrwtu.fsf@gnu.org>
2007-05-31 15:34         ` org-blog.el v1.17 and org-publish-org-to-html Rick Moynihan

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).