markup the notes

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

Tags: ,

Post a Comment

You could use <code type="name"> to get your code colorized

Your email is never published nor shared. Required fields are marked *

Close
E-mail It