Merge pull request #174 from Shinmera/markless

Markless plugin through cl-markless-plump
This commit is contained in:
Javier Olaechea 2019-08-31 13:37:36 -05:00 committed by GitHub
commit d61a3a2adc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View file

@ -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 - `:config` is used as supplementary inline configuration to the
`MathJax.Hub.Config ({ ... });`. It is unused by default. `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 ## ReStructuredText
**Description**: Some people really like **Description**: Some people really like

12
plugins/markless.lisp Normal file
View file

@ -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 ())