Improve handling of elements containing raw text
While adding another test case from the goorgeous issues it became clear that inline markup and html entity replacement were erronously applied to raw text elements like inline code =foo=, src/example/export blocks, example lines, etc. To correctly handle those cases in both org and html exports a new parseRawInline method had to be added. Also some misc html export whitespace fixes and stuff
This commit is contained in:
parent
ac2597af4c
commit
0eb3baf1bb
10 changed files with 191 additions and 45 deletions
30
org/testdata/misc.org
vendored
30
org/testdata/misc.org
vendored
|
@ -82,3 +82,33 @@ just a space as title...
|
|||
Foo paragraph.
|
||||
**** Bar
|
||||
Bar paragraph
|
||||
*** DONE [[https://github.com/chaseadamsio/goorgeous/issues/86][#86]]: Multiple hyphens not converted to dashes
|
||||
just like #46
|
||||
- =--= -> -- (en dash)
|
||||
- =---= -> --- (em dash)
|
||||
|
||||
also, consecutive dashes inside
|
||||
- inline code =--= =---= and verbatim ~--~ ~---~
|
||||
- src/example/export blocks should not be converted!
|
||||
#+BEGIN_SRC sh
|
||||
--, ---
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_EXAMPLE
|
||||
--, ---
|
||||
#+END_EXAMPLE
|
||||
|
||||
#+BEGIN_EXPORT html
|
||||
--, ---
|
||||
#+END_EXPORT
|
||||
|
||||
: --, ---
|
||||
|
||||
*** DONE [[https://github.com/chaseadamsio/goorgeous/issues/87][#87]]: Markup in footnotes is rendered literally
|
||||
footnotes can contain *markup* - and other elements and stuff [fn:2:that also goes for *inline* footnote /definitions/]
|
||||
|
||||
* Footnotes
|
||||
|
||||
[fn:1] a footnote /with/ *markup*
|
||||
- and a *list*
|
||||
- because that's possible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue