refactor: Move README.md to README.org, move todos to issues
This commit is contained in:
		
							parent
							
								
									94dd2f4a8e
								
							
						
					
					
						commit
						8bec97a8a0
					
				@ -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.
 | 
			
		||||
							
								
								
									
										20
									
								
								README.org
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								README.org
									
									
									
									
									
										Normal file
									
								
							@ -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.
 | 
			
		||||
							
								
								
									
										18
									
								
								ox-gemini.el
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								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))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user