|
@@ -809,6 +809,8 @@ version."
|
|
|
(setq umax-toc (if (integerp org-export-with-toc)
|
|
|
(min org-export-with-toc umax)
|
|
|
umax))
|
|
|
+ (setq org-lparse-opt-plist
|
|
|
+ (plist-put org-lparse-opt-plist :headline-levels umax))
|
|
|
|
|
|
(when (and org-export-with-toc (not body-only))
|
|
|
(setq lines (org-lparse-prepare-toc
|
|
@@ -845,48 +847,6 @@ version."
|
|
|
(org-lparse-end-environment 'fixedwidth))
|
|
|
(throw 'nextline nil))
|
|
|
|
|
|
- ;; Notes: The baseline version of org-html.el (git commit
|
|
|
- ;; 3d802e), while encountering a *line-long* protected text,
|
|
|
- ;; does one of the following two things based on the state
|
|
|
- ;; of the export buffer.
|
|
|
-
|
|
|
- ;; 1. If a paragraph element has just been opened and
|
|
|
- ;; contains only whitespace as content, insert the
|
|
|
- ;; protected text as part of the previous paragraph.
|
|
|
-
|
|
|
- ;; 2. If the paragraph element has already been opened and
|
|
|
- ;; contains some valid content insert the protected text
|
|
|
- ;; as part of the current paragraph.
|
|
|
-
|
|
|
- ;; I think --->
|
|
|
-
|
|
|
- ;; Scenario 1 mentioned above kicks in when a block of
|
|
|
- ;; protected text has to be inserted en bloc. For example,
|
|
|
- ;; this happens, when inserting an source or example block
|
|
|
- ;; or preformatted content enclosed in #+backend,
|
|
|
- ;; #+begin_backend ... #+end_backend)
|
|
|
-
|
|
|
- ;; Scenario 2 mentioned above kicks in when the protected
|
|
|
- ;; text is part of a running sentence. For example this
|
|
|
- ;; happens in the case of an *multiline* LaTeX equation that
|
|
|
- ;; needs to be inserted verbatim.
|
|
|
-
|
|
|
- ;; org-html.el in the master branch seems to do some
|
|
|
- ;; jugglery by moving paragraphs around. Inorder to make
|
|
|
- ;; these changes backend-agnostic introduce a new text
|
|
|
- ;; property org-native-text and impose the added semantics
|
|
|
- ;; that these protected blocks appear outside of a
|
|
|
- ;; conventional paragraph element.
|
|
|
- ;;
|
|
|
- ;; Extra Note: Check whether org-example and org-native-text
|
|
|
- ;; are entirely equivalent.
|
|
|
-
|
|
|
- ;; Fixes bug reported by Christian Moe concerning verbatim
|
|
|
- ;; LaTeX fragments.
|
|
|
- ;; on git commit 533ba3f90250a1f25f494c390d639ea6274f235c
|
|
|
- ;; http://repo.or.cz/w/org-mode/org-jambu.git/shortlog/refs/heads/staging
|
|
|
- ;; See http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01379.html
|
|
|
-
|
|
|
;; Native Text
|
|
|
(when (and (get-text-property 0 'org-native-text line)
|
|
|
;; Make sure it is the entire line that is protected
|