diff --git a/docs/plugin-use.md b/docs/plugin-use.md index b7f6ff1..3a7f62e 100644 --- a/docs/plugin-use.md +++ b/docs/plugin-use.md @@ -102,6 +102,17 @@ post with `format: cl-who` and the plugin will do the rest. - `:config` is used as supplementary inline configuration to the `MathJax.Hub.Config ({ ... });`. It is unused by default. +## Markless + +**Description**: [Markless](https://shirakumo.github.io/markless) is a + new document markup standard. To use it in your posts, create the + posts with `format: mess`. The output is generated using + [cl-markless-plump](https://shirakumo.github.io/cl-markless/cl-markless-plump/), + meaning any syntax extensions that work with it should also be + available in Coleslaw. + +**Example**: `(mess)` + ## ReStructuredText **Description**: Some people really like diff --git a/plugins/markless.lisp b/plugins/markless.lisp new file mode 100644 index 0000000..069b76c --- /dev/null +++ b/plugins/markless.lisp @@ -0,0 +1,12 @@ +(eval-when (:compile-toplevel :load-toplevel) + (ql:quickload 'cl-markless-plump)) + +(defpackage #:coleslaw-markless + (:use #:cl) + (:export #:enable)) +(in-package :coleslaw-markless) + +(defmethod render-text (text (format (eql :mess))) + (cl-markless:output text :target NIL :format 'cl-markless-plump:plump)) + +(defun enable ())