Add support for headline CUSTOM_ID property & linking
this introduces the PropertyDrawer node to make it easier to access the properties associated to a headline - normal drawers don't parse their content into kv pairs
This commit is contained in:
parent
ec895cbe83
commit
aa42998dbc
8 changed files with 79 additions and 14 deletions
4
org/testdata/headlines.html
vendored
4
org/testdata/headlines.html
vendored
|
@ -25,12 +25,12 @@ not just where they are actually meant to be - even here > <code class="stati
|
|||
<span class="priority">[B]</span>
|
||||
Headline with todo status & priority
|
||||
</h1>
|
||||
<h1>
|
||||
<h1 id="this-will-be-the-id-of-the-headline">
|
||||
<span class="todo">DONE</span>
|
||||
Headline with TODO status
|
||||
</h1>
|
||||
<p>
|
||||
the <strong>content</strong>
|
||||
we can link to headlines that define a custom_id: <a href="#this-will-be-the-id-of-the-headline">#this-will-be-the-id-of-the-headline</a>
|
||||
</p>
|
||||
<h1>
|
||||
<span class="priority">[A]</span>
|
||||
|
|
5
org/testdata/headlines.org
vendored
5
org/testdata/headlines.org
vendored
|
@ -7,10 +7,11 @@
|
|||
* TODO [#B] Headline with todo status & priority
|
||||
* DONE Headline with TODO status
|
||||
:PROPERTIES:
|
||||
:Note: property drawers are not exported as html like other drawers
|
||||
:custom_id: this-will-be-the-id-of-the-headline
|
||||
:note: property drawers are not exported as html like other drawers
|
||||
:END:
|
||||
|
||||
the *content*
|
||||
we can link to headlines that define a custom_id: [[#this-will-be-the-id-of-the-headline]]
|
||||
* [#A] Headline with tags & priority :foo:bar:
|
||||
Still outside the drawer
|
||||
:DRAWERNAME:
|
||||
|
|
5
org/testdata/headlines.pretty_org
vendored
5
org/testdata/headlines.pretty_org
vendored
|
@ -7,10 +7,11 @@
|
|||
* TODO [#B] Headline with todo status & priority
|
||||
* DONE Headline with TODO status
|
||||
:PROPERTIES:
|
||||
:Note: property drawers are not exported as html like other drawers
|
||||
:CUSTOM_ID: this-will-be-the-id-of-the-headline
|
||||
:NOTE: property drawers are not exported as html like other drawers
|
||||
:END:
|
||||
|
||||
the *content*
|
||||
we can link to headlines that define a custom_id: [[#this-will-be-the-id-of-the-headline]]
|
||||
* [#A] Headline with tags & priority :foo:bar:
|
||||
Still outside the drawer
|
||||
:DRAWERNAME:
|
||||
|
|
5
org/testdata/misc.html
vendored
5
org/testdata/misc.html
vendored
|
@ -52,10 +52,11 @@ src block
|
|||
* TODO [#B] Headline with todo status & priority
|
||||
* DONE Headline with TODO status
|
||||
:PROPERTIES:
|
||||
:Note: property drawers are not exported as html like other drawers
|
||||
:custom_id: this-will-be-the-id-of-the-headline
|
||||
:note: property drawers are not exported as html like other drawers
|
||||
:END:
|
||||
|
||||
the *content*
|
||||
we can link to headlines that define a custom_id: [[#this-will-be-the-id-of-the-headline]]
|
||||
* [#A] Headline with tags & priority :foo:bar:
|
||||
Still outside the drawer
|
||||
:DRAWERNAME:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue