HTML export: Export src block language as css class
Org mode exports source blocks with the language as a css-class of the exported source block - it's easy enough to do the same.
This commit is contained in:
parent
f1a747ad72
commit
37d33c1206
8 changed files with 30 additions and 2 deletions
4
org/testdata/lists.html
vendored
4
org/testdata/lists.html
vendored
|
@ -59,11 +59,13 @@ and some lines of text
|
|||
<p>
|
||||
and another subitem
|
||||
</p>
|
||||
<pre class="src src-sh">
|
||||
<div class="highlight">
|
||||
<pre>
|
||||
echo with a block
|
||||
</pre>
|
||||
</div>
|
||||
</pre>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
|
@ -131,11 +133,13 @@ term<dd>
|
|||
details on a new line (with an empty line in between)
|
||||
<strong>continued</strong>
|
||||
</p>
|
||||
<pre class="src src-bash">
|
||||
<div class="highlight">
|
||||
<pre>
|
||||
echo "Hello World!"
|
||||
</pre>
|
||||
</div>
|
||||
</pre>
|
||||
<dd>
|
||||
</dl>
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue