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:
Niklas Fasching 2018-12-19 13:25:12 +01:00
parent ec895cbe83
commit aa42998dbc
8 changed files with 79 additions and 14 deletions

View file

@ -25,12 +25,12 @@ not just where they are actually meant to be - even here &gt; <code class="stati
<span class="priority">[B]</span>
Headline with todo status &amp; 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>

View file

@ -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:

View file

@ -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:

View file

@ -52,10 +52,11 @@ src block
* TODO [#B] Headline with todo status &amp; 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 &amp; priority :foo:bar:
Still outside the drawer
:DRAWERNAME: