From 6ab61bbd573b7625e23e33f439aa2c579880cf56 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Fri, 19 Apr 2013 15:39:40 +0800 Subject: [PATCH] Export to different flavors of (x)html. --- lisp/ox-html.el | 209 +++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 140 insertions(+), 69 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 54c6a45..ede983d 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -143,6 +143,26 @@ (defvar org-html--pre/postamble-class "status" "CSS class used for pre/postamble") +(defconst org-html-doctype-alist + '(("html4-strict" . "") + ("html4-transitional" . "") + ("html4-frameset" . "") + + ("xhtml-strict" . "") + ("xhtml-transitional" . "") + ("xhtml-framset" . "") + ("xhtml-11" . "") + + ("html5" . "")) + "An alist mapping (x)html flavors to specific doctypes.") + (defconst org-html-special-string-regexps '(("\\\\-" . "­") ; shy ("---\\([^-]\\)" . "—\\1") ; mdash @@ -150,6 +170,10 @@ ("\\.\\.\\." . "…")) ; hellip "Regular expressions for special string conversion.") +(defconst org-html-cdata-regexp + "\\(\n\\)" + "Regexp used to strip escape tags from script blocks") + (defconst org-html-scripts " +