Flexible Lisp Blogware. Fork for personal use. Mirrored from https://github.com/kingcons/coleslaw originally.

markdown.lisp 358B

12345678910111213
  1. (eval-when (:compile-toplevel :load-toplevel)
  2. (ql:quickload '(3bmd 3bmd-ext-code-blocks)))
  3. (defpackage :coleslaw-md
  4. (:use :cl :coleslaw))
  5. (in-package :coleslaw-md)
  6. (defmethod render-content (text (format (eql :md)))
  7. (let ((3bmd-code-blocks:*code-blocks* t))
  8. (with-output-to-string (str)
  9. (3bmd:parse-string-and-print-to-stream text str))))