summaryrefslogtreecommitdiff
path: root/tests/roots/test-directive-code/caption.rst
blob: 5a2fe4a1f9955112edaa2c2ad7b37d8ac9115976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Dedent
======

Code blocks
-----------

.. code-block:: ruby
   :caption: caption *test* rb

   def ruby?
       false
   end


Literal Include
---------------

.. literalinclude:: literal.inc
   :language: python
   :caption: caption **test** py
   :lines: 10-11