coleslaw/plugins/restructured-text.lisp

18 lines
428 B
Common Lisp
Raw Normal View History

(eval-when (:compile-toplevel :load-toplevel)
(ql:quickload 'docutils))
(defpackage :coleslaw-rst
(:use :cl)
(:import-from :coleslaw #:render-content)
2013-01-29 20:38:55 -05:00
(:import-from :docutils #:read-rst
#:write-html)
(:export #:enable))
(in-package :coleslaw-rst)
(defmethod render-content (text (format (eql :rst)))
(with-output-to-string (str)
(write-html str (read-rst text))))
(defun enable ())