From 3d09e85266f1ceaa25be0864c26662c5d9cc3582 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 28 Dec 2013 20:12:33 +0100 Subject: [PATCH] Disable toc and section-numbers, preempt `vars' Replaces `var' with ~var~. --- edocs.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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."