ethica

Spinozas ethics and various translations, edited for easy post processing.
git clone https://git.repetitions.de/ethica
commit 993ed81cc46e3ce53b1b75cc10380e59de6c7a4b
parent 74f3393a300580df813802055328b1118690fb03
Author: lou woell <lou@repetitions.de>
Date:   Thu, 22 Oct 2026 18:59:13 +0200

implement markdown tag

Diffstat:
Mhtml/node.chtml | 5++---
Mlisp/ethics.lisp | 8++++++++
2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/html/node.chtml b/html/node.chtml @@ -26,9 +26,8 @@ </c:splice> </div> </c:when> - <div class="node-body"> - <c:h>(markdown:parse (or (gethash vkey node) ""))</c:h> - </div> + <c:md class="node-body" + md="(gethash vkey node)"/> <c:when test="refs"> <div class="refs" > <label>References:</label> diff --git a/lisp/ethics.lisp b/lisp/ethics.lisp @@ -121,6 +121,14 @@ :language (getf version :language) :types (getf version :types)))))) +(clip:define-tag-processor md (xml-node) + (clip:process-attributes xml-node) + (setf (plump:tag-name xml-node) "div") + (lquery:$1 xml-node (html (markdown:parse + (or (clip:resolve-attribute xml-node "md") + "")))) + (plump:remove-attribute xml-node "md")) + ;; --- plumbing (defmacro parse-args (&rest args)