highlight: support highlighting lines in the default writer

The hl_lines key is specifically the same as Hugo's key.
This commit is contained in:
Kisaragi Hiu 2022-07-18 03:56:15 +09:00
parent 9b56fc914c
commit ab8d3bc16a
No known key found for this signature in database
GPG key ID: 40ECBEAEA8775FC2
6 changed files with 97 additions and 2 deletions

12
org/testdata/hl-lines.html vendored Normal file
View file

@ -0,0 +1,12 @@
<p>Lines in a source block can be highlighted with <code class="verbatim">:hl_lines</code>.</p>
<div class="src src-emacs-lisp">
<div class="highlight">
<pre>
(+ 1 2)
(+ 1 2)
(+ 1 2)
(+ 1 2)
(+ 1 2)
</pre>
</div>
</div>