diff options
author | Tom Willemse | 2013-12-28 20:12:33 +0100 |
---|---|---|
committer | Tom Willemse | 2013-12-28 20:12:33 +0100 |
commit | 3d09e85266f1ceaa25be0864c26662c5d9cc3582 (patch) | |
tree | 6dcfd314e6356611534c14b1d6d47515d8a9bfe8 | |
parent | f3315a4ddbd3228c14ce2eee0174f039b19c9b09 (diff) | |
download | edocs-3d09e85266f1ceaa25be0864c26662c5d9cc3582.tar.gz edocs-3d09e85266f1ceaa25be0864c26662c5d9cc3582.zip |
Disable toc and section-numbers, preempt `vars'
Replaces `var' with ~var~.
-rw-r--r-- | edocs.el | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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." |