summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>2019-04-30 14:33:23 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>2019-04-30 14:33:23 -0400
commit20d397d65cfc960b42f5eb95c06a9b64ca3ee6fe (patch)
tree480a804f3eddb32c7e316833491e236d67a27541
parent906c50b6631d69759f52cf6016e5198e01d0f51f (diff)
Stop wrapping output in <article>
Wrapping the exported HTML in <article> is just a hack. I've submitted a patch for 'html-reader, which properly solves the issue.
-rw-r--r--ox-haunt.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/ox-haunt.el b/ox-haunt.el
index f154a09..c99ed5b 100644
--- a/ox-haunt.el
+++ b/ox-haunt.el
@@ -115,10 +115,9 @@ valid executable."
(buffer-string))
"---\n"
;; Output the article contents.
- (let ((html (concat "<article>" contents "</article>")))
- (if ox-haunt-tidy-html
- (ox-haunt--tidy-html html)
- html))))
+ (if ox-haunt-tidy-html
+ (ox-haunt--tidy-html contents)
+ contents)))
;;;###autoload
(defun ox-haunt-export-as-html