fix paragraph
ox-gemini inherits the behavior of ox-ascii of folding the paragraphs. It's wrong because in gemini paragraphs are a single long line. This is an attempt at fixing it. Signed-off-by: Justin Abrahms <justin@abrah.ms>
This commit is contained in:
parent
86964652c4
commit
4572682a99
@ -46,6 +46,7 @@
|
|||||||
(lambda (a s v b)
|
(lambda (a s v b)
|
||||||
(org-gemini-export-to-file a s v b nil)))))
|
(org-gemini-export-to-file a s v b nil)))))
|
||||||
:translate-alist '((code . org-gemini-code-inline)
|
:translate-alist '((code . org-gemini-code-inline)
|
||||||
|
(paragraph . org-gemini-paragraph)
|
||||||
(headline . org-gemini-headline)
|
(headline . org-gemini-headline)
|
||||||
(link . org-gemini-link)
|
(link . org-gemini-link)
|
||||||
(section . org-gemini-section)
|
(section . org-gemini-section)
|
||||||
@ -54,9 +55,10 @@
|
|||||||
(quote-block . org-gemini-quote-block)
|
(quote-block . org-gemini-quote-block)
|
||||||
(template . org-gemini-template)))
|
(template . org-gemini-template)))
|
||||||
|
|
||||||
(defun org-gemini-paragraph (paragraph _contents _info)
|
(defun org-gemini-paragraph (_paragraph contents _info)
|
||||||
"PARAGRAPH is the text of the paragraph."
|
"CONTENTS is the text of the paragraph."
|
||||||
paragraph)
|
(concat (string-replace "\n" " " contents)
|
||||||
|
"\n"))
|
||||||
|
|
||||||
(defun org-gemini-item (_input contents _info)
|
(defun org-gemini-item (_input contents _info)
|
||||||
"CONTENTS is the text of the individual item."
|
"CONTENTS is the text of the individual item."
|
||||||
|
Loading…
Reference in New Issue
Block a user