From 8bec97a8a0bfe2c82bde693bbb2710213e306d59 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 14 May 2023 12:21:38 +0200 Subject: [PATCH] refactor: Move README.md to README.org, move todos to issues --- README.md | 9 --------- README.org | 20 ++++++++++++++++++++ ox-gemini.el | 18 ++++++------------ 3 files changed, 26 insertions(+), 21 deletions(-) delete mode 100644 README.md create mode 100644 README.org diff --git a/README.md b/README.md deleted file mode 100644 index 3413e3e..0000000 --- a/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# ox-gemini - -This adds support for exporting org files in gemini format. Many things in here were taken from the ascii exporter, from which this one derives. - -- Read more about gemini here: https://gemini.circumlunar.space/ -- Read more about org-mode here: https://orgmode.org/ - -## License -This software is licensed under GPLv3. diff --git a/README.org b/README.org new file mode 100644 index 0000000..6dc02aa --- /dev/null +++ b/README.org @@ -0,0 +1,20 @@ +#+title: ox-gemini + +Forked from Justin Abrahms’ [[https://git.sr.ht/~abrahms/ox-gemini][original =ox-gemini=]]. + +* =ox-gemini= +This adds support for exporting org files in gemini format. Many +things in here were taken from the ascii exporter, from which this one +derives. + +- Read more about gemini here: https://gemini.circumlunar.space/ +- Read more about org-mode here: https://orgmode.org/ + +* What this fork adds +Not much, really. For now, this is just a way for me to apply a fix in +gemini links as described in commit [[https://labs.phundrak.com/phundrak/ox-gemini/commit/94dd2f4a8e5ca50bbfb857395d98da88bf581b6c][94dd2f4]]. + +TODOs formerly in =ox-gemini.el= have also been moved to issues. + +* License +This software is licensed under GPLv3. diff --git a/ox-gemini.el b/ox-gemini.el index 45d8a5e..3c09a70 100644 --- a/ox-gemini.el +++ b/ox-gemini.el @@ -22,12 +22,6 @@ (require 'cl-lib) (require 'url-util) -;; TODO: -;; Sublists aren't supported in gemini -;; There's a trailing space after inline code samples -;; If you link a file to an absolute path, the links break -;; bare links don't work (e.g. directly linking https://google.com) - ;;; Code: (org-export-define-derived-backend 'gemini 'ascii @@ -62,12 +56,12 @@ CONTENTS is the text of the individual item. ITEM is the parsed-org element with all properties." (concat "* " ;; vv Code from ox-md! vv - (pcase (org-element-property :checkbox item) - (`on "[X] ") - (`trans "[-] ") - (`off "[ ] ")) - (let ((tag (org-element-property :tag item))) - (and tag (format "%s :: " (org-export-data tag info)))) + (pcase (org-element-property :checkbox item) + (`on "[X] ") + (`trans "[-] ") + (`off "[ ] ")) + (let ((tag (org-element-property :tag item))) + (and tag (format "%s :: " (org-export-data tag info)))) ;; ^^ ^^ contents))