go-org-orgwiki/org/testdata/misc.org
Niklas Fasching 0eb3baf1bb 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
2018-12-17 13:40:15 +01:00

3.8 KiB
Raw Blame History

issues from goorgeous (free test cases, yay!)

DONE #19: Support #+HTML

neato!

DONE #29: Support verse block

This is verse

or even a totally custom kind of block crazy ain't it?

DONE #31: Support #+INCLUDE

Note that only src/example/export block inclusion is supported for now. There's quite a lot more to include (see the org manual for include files) but I don't have a use case for this yet and stuff like namespacing footnotes of included files adds quite a bit of complexity.

for now files can be included as:

  • src block

  • export block

  • example block

DONE #33: Wrong output when mixing html with org-mode

foo foo
bar bar

DONE #46: Support for symbols like ndash and mdash

  • ndash
  • mdash —
  • ellipsis …
  • acute Á and so on
  • note that —— is replaced with 2 mdashes and …. becomes ellipsis+. and so on - that's how org also does it

DONE #47: Consecutive code wrapped text gets joined

either this or that foo. either this or that foo.

DONE #50: LineBreaks in lists are preserved

  • this list item has multiple linbreaks - but it's still just one paragraph (i.e. no line breaks are rendered)
  • foobar
  1. same goes for ordered lists
  2. foo

DONE #68: Quote block with inline markup

DONE #72: Support for #+ATTR_HTML

"Go is fine though."

DONE #75: Not parsing nested lists correctly

  • bullet 1

    • sub bullet

DONE #77: Recognize code— as code plus dash

DONE #78: Emphasis at beginning of line

italics

Text italics

DONE #82: Crash on empty headline

just a space as title…

DONE #84: Paragraphs that are not followed by an empty line are not parsed correctly

Foo

Foo paragraph.

Bar

Bar paragraph

DONE #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!

    --, ---
    --, ---
    
    --, ---
    --, ---
    

DONE #87: Markup in footnotes is rendered literally

footnotes can contain markup - and other elements and stuff 1

Footnotes


1

that also goes for inline footnote definitions