Move markdown into core since it's tiny and blows up trying to load split-sequence.
This commit is contained in:
parent
023004269a
commit
0837833c14
3 changed files with 7 additions and 13 deletions
|
@ -5,7 +5,8 @@
|
||||||
:license "BSD"
|
:license "BSD"
|
||||||
:author "Brit Butler <redline6561@gmail.com>"
|
:author "Brit Butler <redline6561@gmail.com>"
|
||||||
:pathname "src/"
|
:pathname "src/"
|
||||||
:depends-on (:closure-template :iolib.os :alexandria :cl-fad :local-time)
|
:depends-on (:alexandria :closure-template :3bmd :3bmd-ext-code-blocks
|
||||||
|
:local-time :iolib.os :cl-fad)
|
||||||
:serial t
|
:serial t
|
||||||
:components ((:file "packages")
|
:components ((:file "packages")
|
||||||
(:file "config")
|
(:file "config")
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
(eval-when (:compile-toplevel :load-toplevel)
|
|
||||||
(ql:quickload '(3bmd 3bmd-ext-code-blocks)))
|
|
||||||
|
|
||||||
(defpackage :coleslaw-md
|
|
||||||
(:use :cl :coleslaw))
|
|
||||||
|
|
||||||
(in-package :coleslaw-md)
|
|
||||||
|
|
||||||
(defmethod render-content (text (format (eql :md)))
|
|
||||||
(let ((3bmd-code-blocks:*code-blocks* t))
|
|
||||||
(with-output-to-string (str)
|
|
||||||
(3bmd:parse-string-and-print-to-stream text str))))
|
|
|
@ -42,6 +42,11 @@
|
||||||
(:method (text (format (eql :html)))
|
(:method (text (format (eql :html)))
|
||||||
text))
|
text))
|
||||||
|
|
||||||
|
(defmethod render-content (text (format (eql :md)))
|
||||||
|
(let ((3bmd-code-blocks:*code-blocks* t))
|
||||||
|
(with-output-to-string (str)
|
||||||
|
(3bmd:parse-string-and-print-to-stream text str))))
|
||||||
|
|
||||||
(defun read-post (in)
|
(defun read-post (in)
|
||||||
"Make a POST instance based on the data from the stream IN."
|
"Make a POST instance based on the data from the stream IN."
|
||||||
(flet ((check-header ()
|
(flet ((check-header ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue