forked from mirrors/org-mode
My personal patches-in-progress branch of Org.
See https://git.tecosaur.net/mirrors/org-mode/compare/main..tec/org-mode:dev.
85e1f9760f
* lisp/org-html.el (org-export-as-html): Do not treat partially protected lines as if they were fully protected. Nicolas Goaziou writes: > Here is a problem when a latex fragment is split across two lines and > an emphasize follows. The text won't be italicized upon exporting to > HTML. > > ===== > * latex-fragments bug > > Imagine we have a formula starting here $e^{i\pi} + > 1 = 0$. Now we have a problem with /emphasize/. > ===== > > This is because the line starts with a char with 'org-protected > property and, thus, get caught by the "Protected HTML" (org-html.el > l. 1216) part of `org-export-as-html'. In others words, the line is > inserted as-is in the output buffer, before getting any > transformation. > > I'm not sure how it should be done (I don't get yet the usefulness of > this "Protected HTML" part), but that piece of code may be moved after > the `org-html-expand' call, as long as every sub-function in > `org-html-expand' has a check to prevent modifying protected stuff > (this not yet the case for `org-export-with-emphasize' and > `org-html-protect' while others seem ok). > > But even in this case, every function getting called after that would > be ignored. So, for example, links would not be inserted. > > Couldn't the "Protected HTML" part be removed altogether? |
||
---|---|---|
BUGFIXING | ||
contrib | ||
doc | ||
EXPERIMENTAL | ||
lisp | ||
ORGWEBPAGE | ||
testing | ||
UTILITIES | ||
.dir-locals.el | ||
.dir-settings.el | ||
.gitignore | ||
.gitmodules | ||
Makefile | ||
README | ||
README_DIST | ||
README_GIT | ||
README_maintainer | ||
request-assign-future.txt |
This is the Emacs Org project, an emacs subsystem for organizing your life The homepage of Org is at http://orgmode.org This distribution contains: README This file. README_DIST The README file for the distribution (zip and tar files) README_GIT Information about the git repository and how to contribute to Org-mode development. lisp/ Directory with all the Emacs Lisp files that make up Org. doc/ The documentation files. org.texi is the source of the documentation, org.html and org.pdf are formatted versions of it. contrib/ A directory with third-party additions for Org. Some really cool stuff is in there. ORGWEBPAGE/ Directory with the source files for the orgmode.org web page. ChangeLog The standard ChangeLog file. Makefile The makefile to compile and install Org, and also for maintenance tasks. request-assign-future.txt The form that contributors have to sign and get processed with the FSF before contributed changes can be integrated into the Org core. All files in this distribution except the CONTRIB directory have copyright assigned to the FSF. EXPERIMENTAL Experimental code, not necessarily FSF copyright.