From 2a30eb2a2d5472be3df1254d5d4d04310314e628 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 19 Mar 2021 20:10:23 -0400 Subject: Break up giant haunt.scm file into many modules. --- markdown.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 markdown.scm (limited to 'markdown.scm') diff --git a/markdown.scm b/markdown.scm new file mode 100644 index 0000000..d1a70b4 --- /dev/null +++ b/markdown.scm @@ -0,0 +1,53 @@ +;;; Copyright © 2018-2021 David Thompson +;;; +;;; This program is free software; you can redistribute it and/or +;;; modify it under the terms of the GNU General Public License as +;;; published by the Free Software Foundation; either version 3 of the +;;; License, or (at your option) any later version. +;;; +;;; This program is distributed in the hope that it will be useful, +;;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with this program. If not, see +;;; . + +(define-module (markdown) + #:use-module (commonmark) + #:use-module (haunt post) + #:use-module (haunt reader) + #:use-module (highlight) + #:use-module (sxml match) + #:use-module (sxml transform) + #:export (commonmark-reader*)) + +(define (sxml-identity . args) args) + +;; Markdown doesn't support video, so let's hack around that! Find +;; tags with a ".webm" source and substitute a