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:
Niklas Fasching 2018-12-18 14:14:08 +01:00
parent dce67eaddf
commit a60f844e38
6 changed files with 59 additions and 6 deletions

View file

@ -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 &gt; <code class="statistic">[100%]</code> &lt;
(Org mode proper does the same)
</p>
</li>
</ul>
<h1>
<span class="todo">TODO</span>
<span class="priority">B</span>