Sacha pastes this on #emacs. I think I can tweak this to do the region render. Nice!
"Mark up STRING according to `emacs-wiki-publishing-rules’.
No header or footer is added."
(let ((emacs-wiki-project emacs-wiki-current-project))
(with-temp-buffer
(emacs-wiki-mode)
(insert string)
(let ((emacs-wiki-publishing-header "")
(emacs-wiki-publishing-footer ""))
(emacs-wiki-replace-markup))
(buffer-string))))
No header or footer is added."
(let ((emacs-wiki-project emacs-wiki-current-project))
(with-temp-buffer
(emacs-wiki-mode)
(insert string)
(let ((emacs-wiki-publishing-header "")
(emacs-wiki-publishing-footer ""))
(emacs-wiki-replace-markup))
(buffer-string))))
Post a Comment
You could use <code type="name"> to get your code colorized