summaryrefslogtreecommitdiff
path: root/tests/roots/test-directive-code/caption.rst
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roots/test-directive-code/caption.rst')
-rw-r--r--tests/roots/test-directive-code/caption.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/roots/test-directive-code/caption.rst b/tests/roots/test-directive-code/caption.rst
new file mode 100644
index 00000000..5a2fe4a1
--- /dev/null
+++ b/tests/roots/test-directive-code/caption.rst
@@ -0,0 +1,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