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
6
org/testdata/blocks.html
vendored
6
org/testdata/blocks.html
vendored
|
@ -1,4 +1,5 @@
|
|||
<figure>
|
||||
<pre class="src src-bash">
|
||||
<div class="highlight">
|
||||
<pre>
|
||||
echo "a bash source block"
|
||||
|
@ -10,15 +11,18 @@ function hello {
|
|||
hello
|
||||
</pre>
|
||||
</div>
|
||||
</pre>
|
||||
<figcaption>
|
||||
block caption
|
||||
</figcaption>
|
||||
</figure>
|
||||
<pre class="src src-text">
|
||||
<div class="highlight">
|
||||
<pre>
|
||||
a source block without a language
|
||||
</pre>
|
||||
</div>
|
||||
</pre>
|
||||
<pre class="example">
|
||||
an example block with
|
||||
multiple lines including
|
||||
|
@ -120,11 +124,13 @@ this unindented line is outside of the list item
|
|||
<p>
|
||||
list item 2
|
||||
</p>
|
||||
<pre class="src src-text">
|
||||
<div class="highlight">
|
||||
<pre>
|
||||
#+BEGIN_EXAMPLE
|
||||
</pre>
|
||||
</div>
|
||||
</pre>
|
||||
<p>
|
||||
#+END_EXAMPLE
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue