orgize icon indicating copy to clipboard operation
orgize copied to clipboard

Fix drawer parsing to not take headlines

Open calmofthestorm opened this issue 4 years ago • 0 comments

Please review after #34 .

Currently, when parsing a drawer for a node of level N, any headlines of level N + 1 will be absorbed into the drawer. This changes drawer parsing to reject headlines. For example:

* Hello
:PROPERTIES:
** World
:END:

should be parsed as two nodes. The drawer is ill-formed, and will be parsed as part of the body instead of as a drawer.

This will fix #24 .

calmofthestorm avatar May 14 '20 09:05 calmofthestorm