Add basic support for statistic tokens (e.g. [100%] [1/1])
Org mode does not care where those tokens are when it comes to the export (afaict). We'll do the same. (They should only be in the first line of a list item or a headline)
This commit is contained in:
parent
dce67eaddf
commit
a60f844e38
6 changed files with 59 additions and 6 deletions
21
org/testdata/headlines.html
vendored
21
org/testdata/headlines.html
vendored
|
@ -1,6 +1,25 @@
|
|||
<h1>
|
||||
Simple Headline
|
||||
Simple Headline <code class="statistic">[1/2]</code>
|
||||
</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
[X] checked
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
[ ] unchecked
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
note that statistic tokens are marked up anywhere
|
||||
not just where they are actually meant to be - even here > <code class="statistic">[100%]</code> <
|
||||
(Org mode proper does the same)
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>
|
||||
<span class="todo">TODO</span>
|
||||
<span class="priority">B</span>
|
||||
|
|
7
org/testdata/headlines.org
vendored
7
org/testdata/headlines.org
vendored
|
@ -1,4 +1,9 @@
|
|||
* Simple Headline
|
||||
* Simple Headline [1/2]
|
||||
- [X] checked
|
||||
- [ ] unchecked
|
||||
- note that statistic tokens are marked up anywhere
|
||||
not just where they are actually meant to be - even here > [100%] <
|
||||
(Org mode proper does the same)
|
||||
* TODO [#B] Headline with todo status & priority
|
||||
* DONE Headline with TODO status
|
||||
:PROPERTIES:
|
||||
|
|
7
org/testdata/misc.html
vendored
7
org/testdata/misc.html
vendored
|
@ -43,7 +43,12 @@ src block
|
|||
</p>
|
||||
<div class="highlight">
|
||||
<pre>
|
||||
* Simple Headline
|
||||
* Simple Headline [1/2]
|
||||
- [X] checked
|
||||
- [ ] unchecked
|
||||
- note that statistic tokens are marked up anywhere
|
||||
not just where they are actually meant to be - even here > [100%] <
|
||||
(Org mode proper does the same)
|
||||
* TODO [#B] Headline with todo status & priority
|
||||
* DONE Headline with TODO status
|
||||
:PROPERTIES:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue