use prism-tomorrow.css
This commit is contained in:
@ -0,0 +1,37 @@
|
||||
-a Simple option
|
||||
-b
|
||||
Simple option on next line
|
||||
--very-long-option Long option
|
||||
+f Option using +
|
||||
-f FILE Option with value 1
|
||||
--file=FILE Option with value 2
|
||||
-2, --two Two options in a row.
|
||||
-f FILE, --file=FILE Two options with values in a row.
|
||||
/V A VMS/DOS-style option.
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["command-line-option", "-a"],
|
||||
" Simple option\r\n",
|
||||
["command-line-option", "-b"],
|
||||
"\r\n Simple option on next line\r\n",
|
||||
["command-line-option", "--very-long-option"],
|
||||
" Long option\r\n",
|
||||
["command-line-option", "+f"],
|
||||
" Option using +\r\n",
|
||||
["command-line-option", "-f FILE"],
|
||||
" Option with value 1\r\n",
|
||||
["command-line-option", "--file=FILE"],
|
||||
" Option with value 2\r\n",
|
||||
["command-line-option", "-2, --two"],
|
||||
" Two options in a row.\r\n",
|
||||
["command-line-option", "-f FILE, --file=FILE"],
|
||||
" Two options with values in a row.\r\n",
|
||||
["command-line-option", "/V"],
|
||||
" A VMS/DOS-style option."
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for command line options.
|
@ -0,0 +1,24 @@
|
||||
.. foo
|
||||
|
||||
.. foo
|
||||
bar
|
||||
|
||||
..
|
||||
_foo:
|
||||
[bar]
|
||||
|baz|
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", ".."],
|
||||
["comment", " foo"],
|
||||
["punctuation", ".."],
|
||||
["comment", " foo\r\nbar"],
|
||||
["punctuation", ".."],
|
||||
["comment", "\r\n\t_foo:\r\n\t[bar]\r\n\t|baz|"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
@ -0,0 +1,33 @@
|
||||
.. image:: mylogo.jpeg
|
||||
.. figure:: foo.png
|
||||
|
||||
.. note:: This is a paragraph.
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", ".."],
|
||||
["directive", [
|
||||
"image",
|
||||
["punctuation", "::"]
|
||||
]],
|
||||
" mylogo.jpeg\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["directive", [
|
||||
"figure",
|
||||
["punctuation", "::"]
|
||||
]],
|
||||
" foo.png\r\n\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["directive", [
|
||||
"note",
|
||||
["punctuation", "::"]
|
||||
]],
|
||||
" This is a paragraph."
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for directives.
|
@ -0,0 +1,22 @@
|
||||
>>> Foo
|
||||
|
||||
>>> foo
|
||||
bar
|
||||
baz
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["doctest-block", [
|
||||
["punctuation", ">>>"],
|
||||
" Foo"
|
||||
]],
|
||||
["doctest-block", [
|
||||
["punctuation", ">>>"],
|
||||
" foo\r\nbar\r\nbaz"
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for doctest blocks.
|
@ -0,0 +1,19 @@
|
||||
:scale: 50 %
|
||||
:alt: map to buried treasure
|
||||
|
||||
:width: 11
|
||||
:height: 11
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["field", ":scale:"], " 50 %\r\n\t",
|
||||
["field", ":alt:"], " map to buried treasure\r\n\r\n",
|
||||
|
||||
["field", ":width:"], " 11\r\n",
|
||||
["field", ":height:"], " 11"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for fields.
|
112
docs/_style/prism-master/tests/languages/rest/hr_feature.test
Normal file
112
docs/_style/prism-master/tests/languages/rest/hr_feature.test
Normal file
@ -0,0 +1,112 @@
|
||||
Foo
|
||||
|
||||
!!!!
|
||||
|
||||
""""
|
||||
|
||||
####
|
||||
|
||||
$$$$
|
||||
|
||||
%%%%
|
||||
|
||||
&&&&
|
||||
|
||||
''''
|
||||
|
||||
((((
|
||||
|
||||
))))
|
||||
|
||||
****
|
||||
|
||||
++++
|
||||
|
||||
,,,,
|
||||
|
||||
----
|
||||
|
||||
....
|
||||
|
||||
////
|
||||
|
||||
::::
|
||||
|
||||
;;;;
|
||||
|
||||
<<<<
|
||||
|
||||
====
|
||||
|
||||
>>>>
|
||||
|
||||
????
|
||||
|
||||
@@@@
|
||||
|
||||
[[[[
|
||||
|
||||
\\\\
|
||||
|
||||
]]]]
|
||||
|
||||
^^^^
|
||||
|
||||
____
|
||||
|
||||
````
|
||||
|
||||
{{{{
|
||||
|
||||
||||
|
||||
|
||||
}}}}
|
||||
|
||||
~~~~
|
||||
|
||||
Foo
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"Foo\r\n\r\n",
|
||||
["hr", "!!!!"],
|
||||
["hr", "\"\"\"\""],
|
||||
["hr", "####"],
|
||||
["hr", "$$$$"],
|
||||
["hr", "%%%%"],
|
||||
["hr", "&&&&"],
|
||||
["hr", "''''"],
|
||||
["hr", "(((("],
|
||||
["hr", "))))"],
|
||||
["hr", "****"],
|
||||
["hr", "++++"],
|
||||
["hr", ",,,,"],
|
||||
["hr", "----"],
|
||||
["hr", "...."],
|
||||
["hr", "////"],
|
||||
["hr", "::::"],
|
||||
["hr", ";;;;"],
|
||||
["hr", "<<<<"],
|
||||
["hr", "===="],
|
||||
["hr", ">>>>"],
|
||||
["hr", "????"],
|
||||
["hr", "@@@@"],
|
||||
["hr", "[[[["],
|
||||
["hr", "\\\\\\\\"],
|
||||
["hr", "]]]]"],
|
||||
["hr", "^^^^"],
|
||||
["hr", "____"],
|
||||
["hr", "````"],
|
||||
["hr", "{{{{"],
|
||||
["hr", "||||"],
|
||||
["hr", "}}}}"],
|
||||
["hr", "~~~~"],
|
||||
"\r\n\r\nFoo"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for horizontal lines, with every possible characters.
|
||||
The "Foo"s are required since tests are trimmed and horizontal lines
|
||||
require line feeds before and after.
|
@ -0,0 +1,55 @@
|
||||
Foo *emphasis*.
|
||||
**Strong** bar.
|
||||
This is `interpreted text`.
|
||||
:role:`interpreted text`
|
||||
`interpreted text`:role:
|
||||
``inline literals``
|
||||
This is a regexp: ``[+-]?(\d+(\.\d*)?|\.\d+)``
|
||||
Usage of |substitution|.
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"Foo ",
|
||||
["inline", [
|
||||
["punctuation", "*"], ["italic", "emphasis"], ["punctuation", "*"]
|
||||
]],
|
||||
".\r\n",
|
||||
["inline", [
|
||||
["punctuation", "**"], ["bold", "Strong"], ["punctuation", "**"]
|
||||
]],
|
||||
" bar.\r\nThis is ",
|
||||
["inline", [
|
||||
["punctuation", "`"], ["interpreted-text", "interpreted text"], ["punctuation", "`"]
|
||||
]],
|
||||
".\r\n",
|
||||
["inline", [
|
||||
["role", [
|
||||
["punctuation", ":"], "role", ["punctuation", ":"]
|
||||
]],
|
||||
["punctuation", "`"], ["interpreted-text", "interpreted text"], ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], ["interpreted-text", "interpreted text"], ["punctuation", "`"],
|
||||
["role", [
|
||||
["punctuation", ":"], "role", ["punctuation", ":"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], ["inline-literal", "inline literals"], ["punctuation", "``"]
|
||||
]],
|
||||
"\r\nThis is a regexp: ",
|
||||
["inline", [
|
||||
["punctuation", "``"], ["inline-literal", "[+-]?(\\d+(\\.\\d*)?|\\.\\d+)"], ["punctuation", "``"]
|
||||
]],
|
||||
"\r\nUsage of ",
|
||||
["inline", [
|
||||
["punctuation", "|"], ["substitution", "substitution"], ["punctuation", "|"]
|
||||
]],
|
||||
"."
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for most inline markup: emphasis, bold, interpreted text,
|
||||
roles, inline literals and substitutions.
|
@ -0,0 +1,90 @@
|
||||
.. [1] Foo
|
||||
.. [2] Bar
|
||||
.. [#] Baz
|
||||
.. [#foobar] Foobar
|
||||
.. [CIT2002] Foobar
|
||||
|
||||
.. _foobar: Foobar
|
||||
.. _foo\:bar: Foobar
|
||||
.. _`foo:bar`: Foobar
|
||||
.. __: Anonymous
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "["],
|
||||
"1",
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
" Foo\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "["],
|
||||
"2",
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
" Bar\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "["],
|
||||
"#",
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
" Baz\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "["],
|
||||
"#foobar",
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
" Foobar\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "["],
|
||||
"CIT2002",
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
" Foobar\r\n\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "_"],
|
||||
"foobar",
|
||||
["punctuation", ":"]
|
||||
]],
|
||||
" Foobar\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "_"],
|
||||
"foo\\:bar",
|
||||
["punctuation", ":"]
|
||||
]],
|
||||
" Foobar\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "_"],
|
||||
"`foo:bar`",
|
||||
["punctuation", ":"]
|
||||
]],
|
||||
" Foobar\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["link-target", [
|
||||
["punctuation", "_"],
|
||||
["punctuation", "_"],
|
||||
["punctuation", ":"]
|
||||
]],
|
||||
" Anonymous"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for link targets.
|
@ -0,0 +1,33 @@
|
||||
[1]_
|
||||
[2]_
|
||||
[#]_
|
||||
[#foobar]_
|
||||
[CIT2002]_
|
||||
|
||||
foobar_
|
||||
foo__
|
||||
foo:bar_
|
||||
`foo:bar`_
|
||||
`foo bar baz`__
|
||||
_`inline internal target`
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["link", [["punctuation", "["], "1", ["punctuation", "]_"]]],
|
||||
["link", [["punctuation", "["], "2", ["punctuation", "]_"]]],
|
||||
["link", [["punctuation", "["], "#", ["punctuation", "]_"]]],
|
||||
["link", [["punctuation", "["], "#foobar", ["punctuation", "]_"]]],
|
||||
["link", [["punctuation", "["], "CIT2002", ["punctuation", "]_"]]],
|
||||
|
||||
["link", ["foobar", ["punctuation", "_"]]],
|
||||
["link", ["foo", ["punctuation", "__"]]],
|
||||
["link", ["foo:bar", ["punctuation", "_"]]],
|
||||
["link", [["punctuation", "`"], "foo:bar", ["punctuation", "`_"]]],
|
||||
["link", [["punctuation", "`"], "foo bar baz", ["punctuation", "`__"]]],
|
||||
["link", [["punctuation", "_`"], "inline internal target", ["punctuation", "`"]]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for links.
|
@ -0,0 +1,45 @@
|
||||
* foo
|
||||
+ bar
|
||||
- baz
|
||||
• foo
|
||||
‣ bar
|
||||
⁃ baz
|
||||
|
||||
(42) foo
|
||||
(a) bar
|
||||
(xvii) baz
|
||||
|
||||
4) foo
|
||||
h) bar
|
||||
MLCDXVI) 1666
|
||||
|
||||
1. foo
|
||||
z. bar
|
||||
mlcdxvi. baz
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["list-bullet", "*"], " foo\r\n",
|
||||
["list-bullet", "+"], " bar\r\n",
|
||||
["list-bullet", "-"], " baz\r\n",
|
||||
["list-bullet", "•"], " foo\r\n",
|
||||
["list-bullet", "‣"], " bar\r\n",
|
||||
["list-bullet", "⁃"], " baz\r\n\r\n",
|
||||
|
||||
["list-bullet", "(42)"], " foo\r\n",
|
||||
["list-bullet", "(a)"], " bar\r\n",
|
||||
["list-bullet", "(xvii)"], " baz\r\n\r\n",
|
||||
|
||||
["list-bullet", "4)"], " foo\r\n",
|
||||
["list-bullet", "h)"], " bar\r\n",
|
||||
["list-bullet", "MLCDXVI)"], " 1666\r\n\r\n",
|
||||
|
||||
["list-bullet", "1."], " foo\r\n",
|
||||
["list-bullet", "z."], " bar\r\n",
|
||||
["list-bullet", "mlcdxvi."], " baz"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for list bullets.
|
@ -0,0 +1,27 @@
|
||||
::
|
||||
Foo
|
||||
Bar
|
||||
Baz
|
||||
|
||||
Foobar::
|
||||
Foo
|
||||
Bar
|
||||
Baz
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
"\r\n\tFoo\r\n\tBar\r\n\tBaz"
|
||||
]],
|
||||
"\r\n\r\nFoobar",
|
||||
["literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
"\r\n Foo\r\n Bar\r\n Baz"
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for literal blocks.
|
@ -0,0 +1,333 @@
|
||||
::
|
||||
! Foo
|
||||
!! Bar
|
||||
! Baz
|
||||
|
||||
Foobar ::
|
||||
" Foo
|
||||
" Bar
|
||||
"" Baz
|
||||
|
||||
::
|
||||
# Foo
|
||||
# Bar
|
||||
|
||||
::
|
||||
$ Foo
|
||||
$ Bar
|
||||
|
||||
::
|
||||
% Foo
|
||||
% Bar
|
||||
|
||||
::
|
||||
& Foo
|
||||
& Bar
|
||||
|
||||
::
|
||||
' Foo
|
||||
' Bar
|
||||
|
||||
::
|
||||
( Foo
|
||||
( Bar
|
||||
|
||||
::
|
||||
) Foo
|
||||
) Bar
|
||||
|
||||
::
|
||||
* Foo
|
||||
* Bar
|
||||
|
||||
::
|
||||
+ Foo
|
||||
+ Bar
|
||||
|
||||
::
|
||||
, Foo
|
||||
, Bar
|
||||
|
||||
::
|
||||
- Foo
|
||||
- Bar
|
||||
|
||||
::
|
||||
. Foo
|
||||
. Bar
|
||||
|
||||
::
|
||||
/ Foo
|
||||
/ Bar
|
||||
|
||||
::
|
||||
: Foo
|
||||
: Bar
|
||||
|
||||
::
|
||||
; Foo
|
||||
; Bar
|
||||
|
||||
::
|
||||
< Foo
|
||||
< Bar
|
||||
|
||||
::
|
||||
= Foo
|
||||
= Bar
|
||||
|
||||
::
|
||||
> Foo
|
||||
> Bar
|
||||
|
||||
::
|
||||
? Foo
|
||||
? Bar
|
||||
|
||||
::
|
||||
@ Foo
|
||||
@ Bar
|
||||
|
||||
::
|
||||
[ Foo
|
||||
[ Bar
|
||||
|
||||
::
|
||||
\ Foo
|
||||
\ Bar
|
||||
|
||||
::
|
||||
] Foo
|
||||
] Bar
|
||||
|
||||
::
|
||||
^ Foo
|
||||
^ Bar
|
||||
|
||||
::
|
||||
_ Foo
|
||||
_ Bar
|
||||
|
||||
::
|
||||
` Foo
|
||||
` Bar
|
||||
|
||||
::
|
||||
{ Foo
|
||||
{ Bar
|
||||
|
||||
::
|
||||
| Foo
|
||||
| Bar
|
||||
|
||||
::
|
||||
} Foo
|
||||
} Bar
|
||||
|
||||
::
|
||||
~ Foo
|
||||
~ Bar
|
||||
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "!"], " Foo\r\n",
|
||||
["literal-block-punctuation", "!!"], " Bar\r\n",
|
||||
["literal-block-punctuation", "!"], " Baz"
|
||||
]],
|
||||
|
||||
"\r\n\r\nFoobar ",
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "\""], " Foo\r\n",
|
||||
["literal-block-punctuation", "\""], " Bar\r\n",
|
||||
["literal-block-punctuation", "\"\""], " Baz"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "#"], " Foo\r\n",
|
||||
["literal-block-punctuation", "#"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "$"], " Foo\r\n",
|
||||
["literal-block-punctuation", "$"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "%"], " Foo\r\n",
|
||||
["literal-block-punctuation", "%"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "&"], " Foo\r\n",
|
||||
["literal-block-punctuation", "&"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "'"], " Foo\r\n",
|
||||
["literal-block-punctuation", "'"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "("], " Foo\r\n",
|
||||
["literal-block-punctuation", "("], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", ")"], " Foo\r\n",
|
||||
["literal-block-punctuation", ")"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "*"], " Foo\r\n",
|
||||
["literal-block-punctuation", "*"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "+"], " Foo\r\n",
|
||||
["literal-block-punctuation", "+"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", ","], " Foo\r\n",
|
||||
["literal-block-punctuation", ","], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "-"], " Foo\r\n",
|
||||
["literal-block-punctuation", "-"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "."], " Foo\r\n",
|
||||
["literal-block-punctuation", "."], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "/"], " Foo\r\n",
|
||||
["literal-block-punctuation", "/"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", ":"], " Foo\r\n",
|
||||
["literal-block-punctuation", ":"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", ";"], " Foo\r\n",
|
||||
["literal-block-punctuation", ";"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "<"], " Foo\r\n",
|
||||
["literal-block-punctuation", "<"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "="], " Foo\r\n",
|
||||
["literal-block-punctuation", "="], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", ">"], " Foo\r\n",
|
||||
["literal-block-punctuation", ">"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "?"], " Foo\r\n",
|
||||
["literal-block-punctuation", "?"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "@"], " Foo\r\n",
|
||||
["literal-block-punctuation", "@"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "["], " Foo\r\n",
|
||||
["literal-block-punctuation", "["], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "\\"], " Foo\r\n",
|
||||
["literal-block-punctuation", "\\"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "]"], " Foo\r\n",
|
||||
["literal-block-punctuation", "]"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "^"], " Foo\r\n",
|
||||
["literal-block-punctuation", "^"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "_"], " Foo\r\n",
|
||||
["literal-block-punctuation", "_"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "`"], " Foo\r\n",
|
||||
["literal-block-punctuation", "`"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "{"], " Foo\r\n",
|
||||
["literal-block-punctuation", "{"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "|"], " Foo\r\n",
|
||||
["literal-block-punctuation", "|"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "}"], " Foo\r\n",
|
||||
["literal-block-punctuation", "}"], " Bar"
|
||||
]],
|
||||
|
||||
["quoted-literal-block", [
|
||||
["literal-block-punctuation", "::"],
|
||||
["literal-block-punctuation", "~"], " Foo\r\n",
|
||||
["literal-block-punctuation", "~"], " Bar"
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for quoted literal blocks, with every possible character.
|
@ -0,0 +1,69 @@
|
||||
.. |biohazard| image:: biohazard.png
|
||||
.. |Red light| image:: red_light.png
|
||||
|
||||
.. |Michael| user:: mjones
|
||||
.. |Jon| user:: jhl
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", ".."],
|
||||
["substitution-def", [
|
||||
["substitution", [
|
||||
["punctuation", "|"],
|
||||
"biohazard",
|
||||
["punctuation", "|"]
|
||||
]],
|
||||
["directive", [
|
||||
"image",
|
||||
["punctuation", "::"]
|
||||
]]
|
||||
]],
|
||||
" biohazard.png\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["substitution-def", [
|
||||
["substitution", [
|
||||
["punctuation", "|"],
|
||||
"Red light",
|
||||
["punctuation", "|"]
|
||||
]],
|
||||
["directive", [
|
||||
"image",
|
||||
["punctuation", "::"]
|
||||
]]
|
||||
]],
|
||||
" red_light.png\r\n\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["substitution-def", [
|
||||
["substitution", [
|
||||
["punctuation", "|"],
|
||||
"Michael",
|
||||
["punctuation", "|"]
|
||||
]],
|
||||
["directive", [
|
||||
"user",
|
||||
["punctuation", "::"]
|
||||
]]
|
||||
]],
|
||||
" mjones\r\n",
|
||||
|
||||
["punctuation", ".."],
|
||||
["substitution-def", [
|
||||
["substitution", [
|
||||
["punctuation", "|"],
|
||||
"Jon",
|
||||
["punctuation", "|"]
|
||||
]],
|
||||
["directive", [
|
||||
"user",
|
||||
["punctuation", "::"]
|
||||
]]
|
||||
]],
|
||||
" jhl"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for substitution definitions.
|
@ -0,0 +1,64 @@
|
||||
+-----+---------+
|
||||
| foo | bar |
|
||||
+=====+=========+
|
||||
| foo | bar |
|
||||
+-----+---------+
|
||||
|
||||
+---+
|
||||
| 1 |
|
||||
+---+
|
||||
|
||||
=== ===
|
||||
a b
|
||||
=== ===
|
||||
1 2
|
||||
=== ===
|
||||
|
||||
==== ==== =====
|
||||
foo bar
|
||||
--------- -----
|
||||
ab cd e
|
||||
==== ==== =====
|
||||
1 2 3
|
||||
4 5 6
|
||||
==== ==== =====
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["table", [
|
||||
["punctuation", "+-----+---------+"],
|
||||
["punctuation", "|"], " foo ", ["punctuation", "|"], " bar ", ["punctuation", "|"],
|
||||
["punctuation", "+=====+=========+"],
|
||||
["punctuation", "|"], " foo ", ["punctuation", "|"], " bar ", ["punctuation", "|"],
|
||||
["punctuation", "+-----+---------+"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "+---+"],
|
||||
["punctuation", "|"], " 1 ", ["punctuation", "|"],
|
||||
["punctuation", "+---+"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "==="], ["punctuation", "==="],
|
||||
"\r\n a b\r\n",
|
||||
["punctuation", "==="], ["punctuation", "==="],
|
||||
"\r\n 1 2\r\n",
|
||||
["punctuation", "==="], ["punctuation", "==="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="],
|
||||
"\r\n\t foo bar\r\n\t",
|
||||
["punctuation", "---------"], ["punctuation", "-----"],
|
||||
"\r\n\t ab cd e\r\n\t",
|
||||
["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="],
|
||||
"\r\n\t 1 2 3\r\n\t 4 5 6\r\n\t",
|
||||
["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for grid tables and simple tables.
|
585
docs/_style/prism-master/tests/languages/rest/title_feature.test
Normal file
585
docs/_style/prism-master/tests/languages/rest/title_feature.test
Normal file
@ -0,0 +1,585 @@
|
||||
!!!!
|
||||
Foo
|
||||
!!!!
|
||||
|
||||
""""
|
||||
Foo
|
||||
""""
|
||||
|
||||
####
|
||||
Foo
|
||||
####
|
||||
|
||||
$$$$
|
||||
Foo
|
||||
$$$$
|
||||
|
||||
%%%%
|
||||
Foo
|
||||
%%%%
|
||||
|
||||
&&&&
|
||||
Foo
|
||||
&&&&
|
||||
|
||||
''''
|
||||
Foo
|
||||
''''
|
||||
|
||||
((((
|
||||
Foo
|
||||
((((
|
||||
|
||||
))))
|
||||
Foo
|
||||
))))
|
||||
|
||||
****
|
||||
Foo
|
||||
****
|
||||
|
||||
++++
|
||||
Foo
|
||||
++++
|
||||
|
||||
,,,,
|
||||
Foo
|
||||
,,,,
|
||||
|
||||
---
|
||||
Foo
|
||||
---
|
||||
|
||||
....
|
||||
Foo
|
||||
....
|
||||
|
||||
////
|
||||
Foo
|
||||
////
|
||||
|
||||
::::
|
||||
Foo
|
||||
::::
|
||||
|
||||
;;;;
|
||||
Foo
|
||||
;;;;
|
||||
|
||||
<<<<
|
||||
Foo
|
||||
<<<<
|
||||
|
||||
====
|
||||
Foo
|
||||
====
|
||||
|
||||
>>>>
|
||||
Foo
|
||||
>>>>
|
||||
|
||||
????
|
||||
Foo
|
||||
????
|
||||
|
||||
@@@@
|
||||
Foo
|
||||
@@@@
|
||||
|
||||
[[[[
|
||||
Foo
|
||||
[[[[
|
||||
|
||||
\\\\
|
||||
Foo
|
||||
\\\\
|
||||
|
||||
]]]]
|
||||
Foo
|
||||
]]]]
|
||||
|
||||
^^^^
|
||||
Foo
|
||||
^^^^
|
||||
|
||||
____
|
||||
Foo
|
||||
____
|
||||
|
||||
````
|
||||
Foo
|
||||
````
|
||||
|
||||
{{{{
|
||||
Foo
|
||||
{{{{
|
||||
|
||||
||||
|
||||
Foo
|
||||
||||
|
||||
|
||||
}}}}
|
||||
Foo
|
||||
}}}}
|
||||
|
||||
~~~~
|
||||
Foo
|
||||
~~~~
|
||||
|
||||
|
||||
Bar
|
||||
!!!!
|
||||
|
||||
Bar
|
||||
""""
|
||||
|
||||
Bar
|
||||
####
|
||||
|
||||
Bar
|
||||
$$$$
|
||||
|
||||
Bar
|
||||
%%%%
|
||||
|
||||
Bar
|
||||
&&&&
|
||||
|
||||
Bar
|
||||
''''
|
||||
|
||||
Bar
|
||||
((((
|
||||
|
||||
Bar
|
||||
))))
|
||||
|
||||
Bar
|
||||
****
|
||||
|
||||
Bar
|
||||
++++
|
||||
|
||||
Bar
|
||||
,,,,
|
||||
|
||||
Bar
|
||||
---
|
||||
|
||||
Bar
|
||||
....
|
||||
|
||||
Bar
|
||||
////
|
||||
|
||||
Bar
|
||||
::::
|
||||
|
||||
Bar
|
||||
;;;;
|
||||
|
||||
Bar
|
||||
<<<<
|
||||
|
||||
Bar
|
||||
====
|
||||
|
||||
Bar
|
||||
>>>>
|
||||
|
||||
Bar
|
||||
????
|
||||
|
||||
Bar
|
||||
@@@@
|
||||
|
||||
Bar
|
||||
[[[[
|
||||
|
||||
Bar
|
||||
\\\\
|
||||
|
||||
Bar
|
||||
]]]]
|
||||
|
||||
Bar
|
||||
^^^^
|
||||
|
||||
Bar
|
||||
____
|
||||
|
||||
Bar
|
||||
````
|
||||
|
||||
Bar
|
||||
{{{{
|
||||
|
||||
Bar
|
||||
||||
|
||||
|
||||
Bar
|
||||
}}}}
|
||||
|
||||
Bar
|
||||
~~~~
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["title", [
|
||||
["punctuation", "!!!!"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "!!!!"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "\"\"\"\""],
|
||||
["important", "Foo"],
|
||||
["punctuation", "\"\"\"\""]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "####"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "####"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "$$$$"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "$$$$"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "%%%%"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "%%%%"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "&&&&"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "&&&&"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "''''"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "''''"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "(((("],
|
||||
["important", "Foo"],
|
||||
["punctuation", "(((("]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "))))"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "))))"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "****"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "****"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "++++"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "++++"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", ",,,,"],
|
||||
["important", "Foo"],
|
||||
["punctuation", ",,,,"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "---"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "---"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "...."],
|
||||
["important", "Foo"],
|
||||
["punctuation", "...."]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "////"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "////"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "::::"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "::::"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", ";;;;"],
|
||||
["important", "Foo"],
|
||||
["punctuation", ";;;;"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "<<<<"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "<<<<"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "===="],
|
||||
["important", "Foo"],
|
||||
["punctuation", "===="]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", ">>>>"],
|
||||
["important", "Foo"],
|
||||
["punctuation", ">>>>"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "????"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "????"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "@@@@"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "@@@@"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "[[[["],
|
||||
["important", "Foo"],
|
||||
["punctuation", "[[[["]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "\\\\\\\\"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "\\\\\\\\"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "]]]]"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "]]]]"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "^^^^"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "^^^^"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "____"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "____"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "````"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "````"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "{{{{"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "{{{{"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "||||"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "||||"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "}}}}"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "}}}}"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "~~~~"],
|
||||
["important", "Foo"],
|
||||
["punctuation", "~~~~"]
|
||||
]],
|
||||
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "!!!!"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "\"\"\"\""]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "####"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "$$$$"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "%%%%"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "&&&&"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "''''"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "(((("]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "))))"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "****"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "++++"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", ",,,,"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "---"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "...."]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "////"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "::::"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", ";;;;"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "<<<<"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "===="]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", ">>>>"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "????"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "@@@@"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "[[[["]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "\\\\\\\\"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "]]]]"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "^^^^"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "____"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "````"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "{{{{"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "||||"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "}}}}"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["important", "Bar"],
|
||||
["punctuation", "~~~~"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for titles, overlined and underlined or underlined only, with every possible adornments.
|
Reference in New Issue
Block a user