From 149c38ebf3831cfcb97bac6e27734f2310d808e3 Mon Sep 17 00:00:00 2001 From: cnngimenez Date: Mon, 10 Jan 2022 03:33:40 -0300 Subject: [PATCH] quote-block export: multiple lines should start with ">". Using some ox-md.el code to fix this. --- ox-gemini.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ox-gemini.el b/ox-gemini.el index bb69794..79525df 100644 --- a/ox-gemini.el +++ b/ox-gemini.el @@ -59,7 +59,9 @@ (defun org-gemini-quote-block (_input contents _info) "CONTENTS is the text of the quote." - (format "> %s " contents)) + (replace-regexp-in-string + "^" "> " + (replace-regexp-in-string "\n\\'" "" contents))) (defun org-gemini-code-inline (input _contents info) "INPUT is either a 'src-block' or 'example-block' element. INFO is a plist."