go-org-orgwiki/org/testdata/misc.org
Niklas Fasching dce67eaddf Improve ATTR_HTML keyword parsing
Org mode separates kvs not as initially assumed by whitespace (~ csv) but
rather at keywords (~ :\w+).

This is still not replicating Org mode behaviour though as I decided against
attributes ignoring multi-definitions. Instead we stack their
values (and those existing on the element) for certain attributes (class, style
for now).

e.g.
[[foo]]

would become <foo class="a"> in Org mode but becomes <foo class="a b"> with
go-org.
2018-12-18 00:16:41 +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