Integration Test File
This is the file used for integration testing in this package:
Test File Source Code
Sphinx Parsed Code-Block
========================
.. parsed-code-block:: yaml
test:
strings:
string: "string"
emphasised_string: *"string"*
bold_string: **"string"**
literal_string: ``"string"``
link: :ref:`"string"<link>`
numbers:
number: 1
emphasised_number: *17537543*
bold_number: **0.459**
literal_number: ``-95.4``
link: :ref:`0<link>`
lists:
list: [1, 2, 3, 4, 5]
emphasised_list: *[1, 2, 3, 4, 5]*
bold_list: **[1, 2, 3, 4, 5]**
literal_list: ``[1, 2, 3, 4, 5]``
link: :ref:`[1, 2, 3, 4, 5]<link>`
bools:
bool: true
emphasised_bool: *false*
bold_bool: **false**
literal_bool: ``true``
link: :ref:`true<link>`
null:
none: null
emphasised_none: *null*
bold_none: **null**
literal_none: ``null``
link: :ref:`null<link>`
key_and_value_highlighted:
`string: "string"`
*emphasised_number: 17537543*
**bold_number: [1, 2, 3, 4, 5]**
``literal_string: true``
:ref:`link: null<link>`
complex_formatting_combinations:
*emphasised*\ _first_part_of_a_token: *1*\ 23456
bold\ _\ **middle**\ _of_a_token: "string **string** string"
literal_last_part_of_a\ _\ ``token``: [1, 2, 3, ``4, 5]``
:ref:`multiple<link>` :ref:`links<link>` inside :ref:`a<link>` token: true
*markup*\ ``_``\ **immediately**\ :ref:`one<link>`\ *after*\ ``another``: null
.. parsed-code-block:: yaml
:linenos:
:lineno-start: 1
:emphasize-lines: 1,13,22
test:
strings:
string: "string"
emphasised_string: *"string"*
bold_string: **"string"**
literal_string: ``"string"``
link: :ref:`"string"<link>`
numbers:
number: 1
emphasised_number: *17537543*
bold_number: **0.459**
literal_number: ``-95.4``
link: :ref:`0<link>`
lists:
list: [1, 2, 3, 4, 5]
emphasised_list: *[1, 2, 3, 4, 5]*
bold_list: **[1, 2, 3, 4, 5]**
literal_list: ``[1, 2, 3, 4, 5]``
link: :ref:`[1, 2, 3, 4, 5]<link>`
bools:
bool: true
emphasised_bool: *false*
bold_bool: **false**
literal_bool: ``true``
link: :ref:`true<link>`
null:
none: null
emphasised_none: *null*
bold_none: **null**
literal_none: ``null``
link: :ref:`null<link>`
key_and_value_highlighted:
`string: "string"`
*emphasised_number: 17537543*
**bold_number: [1, 2, 3, 4, 5]**
``literal_string: true``
:ref:`link: null<link>`
complex_formatting_combinations:
*emphasised*\ _first_part_of_a_token: *1*\ 23456
bold\ _\ **middle**\ _of_a_token: "string **string** string"
literal_last_part_of_a\ _\ ``token``: [1, 2, 3, ``4, 5]``
:ref:`multiple<link>` :ref:`links<link>` inside :ref:`a<link>` token: true
*markup*\ ``_``\ **immediately**\ :ref:`one<link>`\ *after*\ ``another``: null
.. parsed-code-block:: yaml
:linenos:
:lineno-start: 5
:emphasize-lines: 4,13
:caption: test
:name: test-code-block
test:
strings:
string: "string"
emphasised_string: *"string"*
bold_string: **"string"**
literal_string: ``"string"``
link: :ref:`"string"<link>`
numbers:
number: 1
emphasised_number: *17537543*
bold_number: **0.459**
literal_number: ``-95.4``
link: :ref:`0<link>`
lists:
list: [1, 2, 3, 4, 5]
emphasised_list: *[1, 2, 3, 4, 5]*
bold_list: **[1, 2, 3, 4, 5]**
literal_list: ``[1, 2, 3, 4, 5]``
link: :ref:`[1, 2, 3, 4, 5]<link>`
bools:
bool: true
emphasised_bool: *false*
bold_bool: **false**
literal_bool: ``true``
link: :ref:`true<link>`
null:
none: null
emphasised_none: *null*
bold_none: **null**
literal_none: ``null``
link: :ref:`null<link>`
key_and_value_highlighted:
`string: "string"`
*emphasised_number: 17537543*
**bold_number: [1, 2, 3, 4, 5]**
``literal_string: true``
:ref:`link: null<link>`
complex_formatting_combinations:
*emphasised*\ _first_part_of_a_token: *1*\ 23456
bold\ _\ **middle**\ _of_a_token: "string **string** string"
literal_last_part_of_a\ _\ ``token``: [1, 2, 3, ``4, 5]``
:ref:`multiple<link>` :ref:`links<link>` inside :ref:`a<link>` token: true
*markup*\ ``_``\ **immediately**\ :ref:`one<link>`\ *after*\ ``another``: null
ENDOFFILE!!!!!!!!!!!!!!!!!
.. _link:
Link Target
-----------
The above heading can be linked to.
Test File Rendered
yields:
Sphinx Parsed Code-Block
test:
strings:
string: "string"
emphasised_string: "string"
bold_string: "string"
literal_string: "string"
link: "string"
numbers:
number: 1
emphasised_number: 17537543
bold_number: 0.459
literal_number: -95.4
link: 0
lists:
list: [1, 2, 3, 4, 5]
emphasised_list: [1, 2, 3, 4, 5]
bold_list: [1, 2, 3, 4, 5]
literal_list: [1, 2, 3, 4, 5]
link: [1, 2, 3, 4, 5]
bools:
bool: true
emphasised_bool: false
bold_bool: false
literal_bool: true
link: true
null:
none: null
emphasised_none: null
bold_none: null
literal_none: null
link: null
key_and_value_highlighted:
string: "string"
emphasised_number: 17537543
bold_number: [1, 2, 3, 4, 5]
literal_string: true
link: null
complex_formatting_combinations:
emphasised_first_part_of_a_token: 123456
bold_middle_of_a_token: "string string string"
literal_last_part_of_a_token: [1, 2, 3, 4, 5]
multiple links inside a token: true
markup_immediatelyoneafteranother: null
1test:
2 strings:
3 string: "string"
4 emphasised_string: "string"
5 bold_string: "string"
6 literal_string: "string"
7 link: "string"
8 numbers:
9 number: 1
10 emphasised_number: 17537543
11 bold_number: 0.459
12 literal_number: -95.4
13 link: 0
14 lists:
15 list: [1, 2, 3, 4, 5]
16 emphasised_list: [1, 2, 3, 4, 5]
17 bold_list: [1, 2, 3, 4, 5]
18 literal_list: [1, 2, 3, 4, 5]
19 link: [1, 2, 3, 4, 5]
20
21 bools:
22 bool: true
23 emphasised_bool: false
24 bold_bool: false
25 literal_bool: true
26 link: true
27 null:
28 none: null
29 emphasised_none: null
30 bold_none: null
31 literal_none: null
32 link: null
33 key_and_value_highlighted:
34 string: "string"
35 emphasised_number: 17537543
36 bold_number: [1, 2, 3, 4, 5]
37 literal_string: true
38 link: null
39 complex_formatting_combinations:
40 emphasised_first_part_of_a_token: 123456
41 bold_middle_of_a_token: "string string string"
42 literal_last_part_of_a_token: [1, 2, 3, 4, 5]
43 multiple links inside a token: true
44 markup_immediatelyoneafteranother: null
test
5test:
6 strings:
7 string: "string"
8 emphasised_string: "string"
9 bold_string: "string"
10 literal_string: "string"
11 link: "string"
12 numbers:
13 number: 1
14 emphasised_number: 17537543
15 bold_number: 0.459
16 literal_number: -95.4
17 link: 0
18 lists:
19 list: [1, 2, 3, 4, 5]
20 emphasised_list: [1, 2, 3, 4, 5]
21 bold_list: [1, 2, 3, 4, 5]
22 literal_list: [1, 2, 3, 4, 5]
23 link: [1, 2, 3, 4, 5]
24 bools:
25 bool: true
26 emphasised_bool: false
27 bold_bool: false
28 literal_bool: true
29 link: true
30 null:
31 none: null
32 emphasised_none: null
33 bold_none: null
34 literal_none: null
35 link: null
36 key_and_value_highlighted:
37 string: "string"
38 emphasised_number: 17537543
39 bold_number: [1, 2, 3, 4, 5]
40 literal_string: true
41 link: null
42
43 complex_formatting_combinations:
44 emphasised_first_part_of_a_token: 123456
45 bold_middle_of_a_token: "string string string"
46 literal_last_part_of_a_token: [1, 2, 3, 4, 5]
47 multiple links inside a token: true
48 markup_immediatelyoneafteranother: null
ENDOFFILE!!!!!!!!!!!!!!!!!
Link Target
The above heading can be linked to.