go-org-orgwiki/org
Niklas Fasching 2cf09dcf03 Fix AST headline nesting
Headlines are nested if their level is higher (more stars) than the current
headline. We're abusing the token.lvl field for this - as headlines can never
be indented we know the indentation must be 0 so we can cache the lvl (count of
stars) of the headline in that field.

This doesn't change anything right now so I'll postpone adding tests and stuff
until there are actual use cases for the AST and stuff.
2019-01-07 20:26:27 +01:00
..
testdata Add support for timestamps 2019-01-06 21:01:47 +01:00
block.go Add String() method to Node interface 2019-01-06 20:50:02 +01:00
document.go Add support for timestamps 2019-01-06 21:01:47 +01:00
drawer.go Add String() method to Node interface 2019-01-06 20:50:02 +01:00
footnote.go Add String() method to Node interface 2019-01-06 20:50:02 +01:00
fuzz.go Fix fuzz 2019-01-02 21:22:13 +01:00
headline.go Fix AST headline nesting 2019-01-07 20:26:27 +01:00
html_entity.go Add support for org-entities (e.g. ndash, mdash, \Aacute) 2018-12-11 22:12:51 +01:00
html_writer.go Add support for timestamps 2019-01-06 21:01:47 +01:00
html_writer_test.go Add some documentation & split Document into Configuration+Document 2019-01-02 19:17:17 +01:00
inline.go Add support for timestamps 2019-01-06 21:01:47 +01:00
keyword.go Add String() method to Node interface 2019-01-06 20:50:02 +01:00
list.go Add String() method to Node interface 2019-01-06 20:50:02 +01:00
org_writer.go Add support for timestamps 2019-01-06 21:01:47 +01:00
org_writer_test.go Add some documentation & split Document into Configuration+Document 2019-01-02 19:17:17 +01:00
paragraph.go Add String() method to Node interface 2019-01-06 20:50:02 +01:00
table.go Add String() method to Node interface 2019-01-06 20:50:02 +01:00
util.go Improve footnote handling 2018-12-26 15:42:12 +01:00
writer.go Add support for timestamps 2019-01-06 21:01:47 +01:00