summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--edocs.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/edocs.el b/edocs.el
index a775420..533d8f5 100644
--- a/edocs.el
+++ b/edocs.el
@@ -129,7 +129,11 @@ etc."
(defun edocs--format-text (txt)
"Perform formatting operations on TXT."
- (org-export-string-as txt 'html t))
+ (let ((org-export-with-toc nil)
+ (org-export-with-section-numbers nil))
+ (org-export-string-as
+ (replace-regexp-in-string "`\\([^']+\\)'" "~\\1~" txt)
+ 'html t)))
(defun edocs--format-commentary (cmt)
"Perform special commentary formatting operations on CMT."