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