]> shtarkov.net Git - shtarkov.net.git/commitdiff
Derive instead of redefining backend
authorChristian Shtarkov <ops+git@shtarkov.net>
Sun, 20 Oct 2024 23:58:36 +0000 (00:58 +0100)
committerChristian Shtarkov <ops+git@shtarkov.net>
Sun, 20 Oct 2024 23:58:36 +0000 (00:58 +0100)
onerc.el

index 9af6c69554881b39283e7b85d1717d54389c26d0..e149a57b1ebc363e35d991084968e71f11fea0b9 100644 (file)
--- a/onerc.el
+++ b/onerc.el
@@ -1,30 +1,7 @@
 ;; -*- lexical-binding: t; -*-
-(org-export-define-backend 'shtarkov.net-ox
-  '((headline . one-ox-headline)
-    (section . one-ox-section)
-    (paragraph . one-ox-paragraph)
-
-    (plain-text . one-ox-plain-text)
-
-    (bold . one-ox-bold)
-    (italic . one-ox-italic)
-    (strike-through . one-ox-strike-through)
-    (underline . one-ox-underline)
-    (code . one-ox-code)
-    (verbatim . one-ox-verbatim)
-
-    (subscript . one-ox-no-subscript)
-    (superscript . one-ox-no-superscript)
-
-    (plain-list . one-ox-plain-list)
-    (item . one-ox-item)
-
-    (src-block . one-ox-src-block)
-    (example-block . one-ox-example-block)
-    (fixed-width . one-ox-fixed-width)
-    (quote-block . one-ox-quote-block)
-
-    (link . shtarkov.net-link)))
+(org-export-define-derived-backend 'shtarkov.net-ox 'one-ox
+  :translate-alist
+  '((link . shtarkov.net-link)))
 
 (defun shtarkov.net-head (website-name)
   `(:head