Add minimal affiliated keyword support. Just captions for now
This commit is contained in:
parent
2399fec2eb
commit
043095e672
7 changed files with 138 additions and 8 deletions
27
org/testdata/example.html
vendored
27
org/testdata/example.html
vendored
|
@ -188,8 +188,35 @@ auto link, i.e. not inside <code class="verbatim">\[[square brackets]\]</code> <
|
|||
</ol>
|
||||
</li>
|
||||
</ul>
|
||||
<h2>Captions</h2>
|
||||
<p>
|
||||
Anything can be captioned. Also captions are not real, correct captions but just a paragraph below the element (bothe wrapped into a div)
|
||||
</p>
|
||||
<div class="captioned">
|
||||
<div class="highlight"><pre>echo "i have a caption!"</pre></div>
|
||||
<p class="caption">
|
||||
captioned soure block
|
||||
</p>
|
||||
</div>
|
||||
<div class="captioned">
|
||||
<video src="my-video.mp4" title="my-video.mp4">my-video.mp4</video>
|
||||
<p class="caption">
|
||||
captioned link (video in this case)
|
||||
</p>
|
||||
</div>
|
||||
<p>
|
||||
note that only that one line is captioned, not the whole paragraph
|
||||
</p>
|
||||
<p>
|
||||
also, normal text lines can't be captioned
|
||||
</p>
|
||||
<h2>blocks</h2>
|
||||
<div class="captioned">
|
||||
<div class="highlight"><pre>echo a bash source block</pre></div>
|
||||
<p class="caption">
|
||||
bleck!
|
||||
</p>
|
||||
</div>
|
||||
<div class="highlight"><pre>a source block without a language
|
||||
and a second line
|
||||
and a third one</pre></div>
|
||||
|
|
19
org/testdata/example.org
vendored
19
org/testdata/example.org
vendored
|
@ -63,7 +63,26 @@ this one is cheating a little as tags are ALWAYS printed right aligned to a give
|
|||
6. regular link to https (image) [[https://www.example.com/my-img.png]]
|
||||
7. auto link, i.e. not inside =\[[square brackets]\]= https://www.example.com
|
||||
|
||||
** Captions
|
||||
|
||||
Anything can be captioned. Also captions are not real, correct captions but just a paragraph below the element (bothe wrapped into a div)
|
||||
|
||||
#+CAPTION: captioned soure block
|
||||
#+BEGIN_SRC sh
|
||||
echo "i have a caption!"
|
||||
#+END_SRC
|
||||
|
||||
#+CAPTION: captioned link (video in this case)
|
||||
[[my-video.mp4]]
|
||||
note that only that one line is captioned, not the whole paragraph
|
||||
|
||||
#+CAPTION: not happening!
|
||||
also, normal text lines can't be captioned
|
||||
|
||||
|
||||
** blocks
|
||||
|
||||
#+CAPTION: bleck!
|
||||
#+BEGIN_SRC bash
|
||||
echo a bash source block
|
||||
#+END_SRC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue