use prism-tomorrow.css
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
TIP: Foobar
|
||||
NOTE: Foo bar baz
|
||||
IMPORTANT: Foobar
|
||||
WARNING: Foo bar baz
|
||||
CAUTION: Foobar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["admonition", "TIP:"], " Foobar\r\n",
|
||||
["admonition", "NOTE:"], " Foo bar baz\r\n",
|
||||
["admonition", "IMPORTANT:"], " Foobar\r\n",
|
||||
["admonition", "WARNING:"], " Foo bar baz\r\n",
|
||||
["admonition", "CAUTION:"], " Foobar"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for admonitions.
|
@ -0,0 +1,58 @@
|
||||
:Foo bar: baz
|
||||
|
||||
:Foobar: Foo +
|
||||
bar +
|
||||
baz
|
||||
|
||||
:Foo bar!:
|
||||
:Foobar!:
|
||||
|
||||
=====
|
||||
:Foo bar: baz
|
||||
|
||||
:Foobar: Foo +
|
||||
bar +
|
||||
baz
|
||||
|
||||
:Foo bar!:
|
||||
:Foobar!:
|
||||
=====
|
||||
|
||||
|=====
|
||||
|
|
||||
:Foo bar: baz
|
||||
|
||||
:Foobar: Foo +
|
||||
bar +
|
||||
baz
|
||||
|=====
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["attribute-entry", ":Foo bar: baz"],
|
||||
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
|
||||
["attribute-entry", ":Foo bar!:"],
|
||||
["attribute-entry", ":Foobar!:"],
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "====="],
|
||||
["attribute-entry", ":Foo bar: baz"],
|
||||
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
|
||||
["attribute-entry", ":Foo bar!:"],
|
||||
["attribute-entry", ":Foobar!:"],
|
||||
["punctuation", "====="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|====="],
|
||||
["punctuation", "|"],
|
||||
["attribute-entry", ":Foo bar: baz"],
|
||||
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
|
||||
["punctuation", "|====="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for attribute entries.
|
@ -0,0 +1,403 @@
|
||||
Foo [big red yellow-background]#obvious#
|
||||
|
||||
[float]
|
||||
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
|
||||
[quote,'"with *an* image" image:foo.png[] (TM)']
|
||||
|
||||
[NOTE]
|
||||
[icon="./images/icons/wink.png"]
|
||||
[icons=None, caption="My Special Note"]
|
||||
[start=7]
|
||||
|
||||
[cols="e,m,^,>s",width="25%"]
|
||||
|
||||
=====
|
||||
Foo [big red yellow-background]#obvious#
|
||||
|
||||
[float]
|
||||
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
|
||||
[quote,'"with *an* image" image:foo.png[] (TM)']
|
||||
|
||||
[NOTE]
|
||||
[icon="./images/icons/wink.png"]
|
||||
[icons=None, caption="My Special Note"]
|
||||
[start=7]
|
||||
|
||||
[cols="e,m,^,>s",width="25%"]
|
||||
=====
|
||||
|
||||
|=====
|
||||
|
|
||||
Foo [big red yellow-background]#obvious#
|
||||
|
||||
[float]
|
||||
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
|
||||
[quote,'"with *an* image" image:foo.png[] (TM)']
|
||||
|
||||
[NOTE]
|
||||
[icon="./images/icons/wink.png"]
|
||||
[icons=None, caption="My Special Note"]
|
||||
[start=7]
|
||||
|
||||
[cols="e,m,^,>s",width="25%"]
|
||||
|=====
|
||||
|
||||
|
||||
latexmath:[$C = \alpha + \beta Y^{\gamma} + \epsilon$]
|
||||
asciimath:[`x/x={(1,if x!=0),(text{undefined},if x=0):}`]
|
||||
latexmath:[$\sum_{n=1}^\infty \frac{1}{2^n}$]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"Foo ",
|
||||
["inline", [
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "big red yellow-background"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["punctuation", "#"], "obvious", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//en.wikipedia.org/wiki/Samuel_Johnson",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Samuel Johnson"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["entity", """],
|
||||
"with ",
|
||||
["inline", [
|
||||
["bold", [
|
||||
["punctuation", "*"], "an", ["punctuation", "*"]
|
||||
]]
|
||||
]],
|
||||
" image",
|
||||
["entity", """],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"foo.png",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["replacement", "(TM)"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icon"],
|
||||
["operator", "="],
|
||||
["string", "\"./images/icons/wink.png\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icons"],
|
||||
["operator", "="],
|
||||
["attr-value", "None"],
|
||||
["punctuation", ","],
|
||||
["variable", "caption"],
|
||||
["operator", "="],
|
||||
["string", "\"My Special Note\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "start"],
|
||||
["operator", "="],
|
||||
["attr-value", "7"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "cols"],
|
||||
["operator", "="],
|
||||
["string", "\"e,m,^,>s\""],
|
||||
["punctuation", ","],
|
||||
["variable", "width"],
|
||||
["operator", "="],
|
||||
["string", "\"25%\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "====="],
|
||||
|
||||
"\r\nFoo ",
|
||||
["inline", [
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "big red yellow-background"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["punctuation", "#"], "obvious", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//en.wikipedia.org/wiki/Samuel_Johnson",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Samuel Johnson"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["entity", """],
|
||||
"with ",
|
||||
["inline", [
|
||||
["bold", [
|
||||
["punctuation", "*"], "an", ["punctuation", "*"]
|
||||
]]
|
||||
]],
|
||||
" image",
|
||||
["entity", """],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"foo.png",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["replacement", "(TM)"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icon"],
|
||||
["operator", "="],
|
||||
["string", "\"./images/icons/wink.png\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icons"],
|
||||
["operator", "="],
|
||||
["attr-value", "None"],
|
||||
["punctuation", ","],
|
||||
["variable", "caption"],
|
||||
["operator", "="],
|
||||
["string", "\"My Special Note\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "start"],
|
||||
["operator", "="],
|
||||
["attr-value", "7"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "cols"],
|
||||
["operator", "="],
|
||||
["string", "\"e,m,^,>s\""],
|
||||
["punctuation", ","],
|
||||
["variable", "width"],
|
||||
["operator", "="],
|
||||
["string", "\"25%\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["punctuation", "====="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|====="],
|
||||
["punctuation", "|"],
|
||||
|
||||
"\r\nFoo ",
|
||||
["inline", [
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "big red yellow-background"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["punctuation", "#"], "obvious", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//en.wikipedia.org/wiki/Samuel_Johnson",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Samuel Johnson"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["entity", """],
|
||||
"with ",
|
||||
["inline", [
|
||||
["bold", [
|
||||
["punctuation", "*"], "an", ["punctuation", "*"]
|
||||
]]
|
||||
]],
|
||||
" image",
|
||||
["entity", """],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"foo.png",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["replacement", "(TM)"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icon"],
|
||||
["operator", "="],
|
||||
["string", "\"./images/icons/wink.png\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icons"],
|
||||
["operator", "="],
|
||||
["attr-value", "None"],
|
||||
["punctuation", ","],
|
||||
["variable", "caption"],
|
||||
["operator", "="],
|
||||
["string", "\"My Special Note\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "start"],
|
||||
["operator", "="],
|
||||
["attr-value", "7"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "cols"],
|
||||
["operator", "="],
|
||||
["string", "\"e,m,^,>s\""],
|
||||
["punctuation", ","],
|
||||
["variable", "width"],
|
||||
["operator", "="],
|
||||
["string", "\"25%\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["punctuation", "|====="]
|
||||
]],
|
||||
|
||||
["macro", [
|
||||
["function", "latexmath"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["quoted", [
|
||||
["punctuation", "$"],
|
||||
"C = \\alpha + \\beta Y^{\\gamma} + \\epsilon",
|
||||
["punctuation", "$"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "asciimath"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["quoted", [
|
||||
["punctuation", "`"],
|
||||
"x/x={(1,if x!=0),(text{undefined},if x=0):}",
|
||||
["punctuation", "`"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "latexmath"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["quoted", [
|
||||
["punctuation", "$"],
|
||||
"\\sum_{n=1}^\\infty \\frac{1}{2^n}",
|
||||
["punctuation", "$"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for attributes.
|
@ -0,0 +1,34 @@
|
||||
Foobar <1>
|
||||
<1> Foo
|
||||
1> Bar
|
||||
> Baz
|
||||
|
||||
|====
|
||||
| Foobar <1>
|
||||
<1> Foo
|
||||
1> Bar
|
||||
> Baz
|
||||
|====
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"Foobar ", ["callout", "<1>"],
|
||||
["callout", "<1>"], " Foo\r\n",
|
||||
["callout", "1>"], " Bar\r\n",
|
||||
["callout", ">"], " Baz\r\n\r\n",
|
||||
|
||||
["table", [
|
||||
["punctuation", "|===="],
|
||||
["punctuation", "|"],
|
||||
" Foobar ", ["callout", "<1>"],
|
||||
["callout", "<1>"], " Foo\r\n",
|
||||
["callout", "1>"], " Bar\r\n",
|
||||
["callout", ">"], " Baz\r\n",
|
||||
["punctuation", "|===="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for callouts.
|
@ -0,0 +1,19 @@
|
||||
////
|
||||
////
|
||||
|
||||
////
|
||||
Foobar
|
||||
|
||||
Baz
|
||||
////
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment-block", "////\r\n////"],
|
||||
["comment-block", "////\r\nFoobar\r\n\r\nBaz\r\n////"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comment blocks.
|
@ -0,0 +1,41 @@
|
||||
//
|
||||
// Foobar
|
||||
|
||||
******
|
||||
//
|
||||
// Foobar
|
||||
******
|
||||
|
||||
|======
|
||||
|
|
||||
//
|
||||
|
|
||||
// Foobar
|
||||
|======
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "//"],
|
||||
["comment", "// Foobar"],
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "******"],
|
||||
["comment", "//"],
|
||||
["comment", "// Foobar"],
|
||||
["punctuation", "******"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|======"],
|
||||
["punctuation", "|"],
|
||||
["comment", "//"],
|
||||
["punctuation", "|"],
|
||||
["comment", "// Foobar"],
|
||||
["punctuation", "|======"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
'➊': '<span class="token entity" title="➊">&#x278a;</span>',
|
||||
'¶': '<span class="token entity" title="¶">&#182;</span>'
|
||||
};
|
@ -0,0 +1,48 @@
|
||||
➊ ¶
|
||||
|
||||
➊ ¶
|
||||
============
|
||||
|
||||
['➊ ¶']
|
||||
|
||||
--
|
||||
➊ ¶
|
||||
--
|
||||
|
||||
|======
|
||||
| ➊ ¶
|
||||
|======
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["title", [
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["punctuation", "============"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "--"],
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["punctuation", "--"]
|
||||
]],
|
||||
["table", [
|
||||
["punctuation", "|======"],
|
||||
["punctuation", "|"],
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["punctuation", "|======"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for entities.
|
@ -0,0 +1,14 @@
|
||||
'''
|
||||
|
||||
''''''''''
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["hr", "'''"],
|
||||
["hr", "''''''''''"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for hr.
|
@ -0,0 +1,28 @@
|
||||
.
|
||||
|
||||
(TM) __foobar__
|
||||
:bar: baz
|
||||
|
||||
Foo *bar* baz
|
||||
// Foobar
|
||||
== Foobar ==
|
||||
|
||||
Title
|
||||
~~~~~
|
||||
.....
|
||||
.....
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
".\r\n\r\n",
|
||||
["indented-block", "\t(TM) __foobar__\r\n\t:bar: baz"],
|
||||
["indented-block", " Foo *bar* baz\r\n // Foobar\r\n == Foobar =="],
|
||||
["indented-block", " Title\r\n ~~~~~\r\n .....\r\n ....."]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for indented blocks.
|
||||
Also checks that nothing gets highlighted inside.
|
||||
The initial dot is required because tests are trimmed.
|
@ -0,0 +1,521 @@
|
||||
_emphasis_
|
||||
``double quotes''
|
||||
`single quotes'
|
||||
`monospace`
|
||||
'emphasis'
|
||||
*strong*
|
||||
+monospace+
|
||||
#unquoted#
|
||||
|
||||
_foo _ bar baz_
|
||||
`foo ' bar baz'
|
||||
`foo ` bar baz`
|
||||
'foo ' bar baz'
|
||||
*foo * bar baz*
|
||||
+foo + bar baz+
|
||||
#foo # bar baz#
|
||||
|
||||
_foo
|
||||
bar_
|
||||
``foo
|
||||
bar''
|
||||
`foo
|
||||
bar'
|
||||
`foo
|
||||
bar`
|
||||
'foo
|
||||
bar'
|
||||
*foo
|
||||
bar*
|
||||
+foo
|
||||
bar+
|
||||
#foo
|
||||
bar#
|
||||
|
||||
foo__emphasis__bar
|
||||
foo**strong**bar
|
||||
foo++monospace++bar
|
||||
foo+++passthrough+++bar
|
||||
foo##unquoted##bar
|
||||
foo$$passthrough$$bar
|
||||
foo~subscript~bar
|
||||
foo^superscript^bar
|
||||
foo{attribute-reference}bar
|
||||
foo[[anchor]]bar
|
||||
foo[[[bibliography anchor]]]bar
|
||||
foo<<xref>>bar
|
||||
foo(((indexes)))bar
|
||||
foo((indexes))bar
|
||||
|
||||
====
|
||||
_emphasis_
|
||||
``double quotes''
|
||||
`single quotes'
|
||||
`monospace`
|
||||
'emphasis'
|
||||
*strong*
|
||||
+monospace+
|
||||
#unquoted#
|
||||
__emphasis__
|
||||
**strong**
|
||||
++monospace++
|
||||
+++passthrough+++
|
||||
##unquoted##
|
||||
$$passthrough$$
|
||||
~subscript~
|
||||
^superscript^
|
||||
{attribute-reference}
|
||||
[[anchor]]
|
||||
[[[bibliography anchor]]]
|
||||
<<xref>>
|
||||
(((indexes)))
|
||||
((indexes))
|
||||
====
|
||||
|
||||
|====
|
||||
|
|
||||
_emphasis_
|
||||
``double quotes''
|
||||
`single quotes'
|
||||
`monospace`
|
||||
'emphasis'
|
||||
*strong*
|
||||
+monospace+
|
||||
#unquoted#
|
||||
__emphasis__
|
||||
**strong**
|
||||
++monospace++
|
||||
+++passthrough+++
|
||||
##unquoted##
|
||||
$$passthrough$$
|
||||
~subscript~
|
||||
^superscript^
|
||||
{attribute-reference}
|
||||
[[anchor]]
|
||||
[[[bibliography anchor]]]
|
||||
<<xref>>
|
||||
(((indexes)))
|
||||
((indexes))
|
||||
|====
|
||||
|
||||
['foo *bar* baz']
|
||||
|
||||
== foo *bar* baz ==
|
||||
|
||||
{names=value}
|
||||
{names?value}
|
||||
{names!value}
|
||||
{names#value}
|
||||
{names%value}
|
||||
{names@regexp:value1:value2}
|
||||
{names$regexp:value1:value2}
|
||||
{names$regexp::value}
|
||||
{foo,bar=foobar}
|
||||
{foo+bar=foobar}
|
||||
{counter:attrname}
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], "double quotes", ["punctuation", "''"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "single quotes", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "monospace", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "monospace", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "unquoted", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "foo _ bar baz", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "foo ' bar baz", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "foo ` bar baz", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "foo ' bar baz", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "foo * bar baz", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "foo + bar baz", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "foo # bar baz", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "foo\r\nbar", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], "foo\r\nbar", ["punctuation", "''"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "foo\r\nbar", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "foo\r\nbar", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "foo\r\nbar", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "foo\r\nbar", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "foo\r\nbar", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "foo\r\nbar", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
"\r\n\r\nfoo",
|
||||
["inline", [
|
||||
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "++"], "monospace", ["punctuation", "++"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "##"], "unquoted", ["punctuation", "##"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "~"], "subscript", ["punctuation", "~"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "^"], "superscript", ["punctuation", "^"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "((("], "indexes", ["punctuation", ")))"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "(("], "indexes", ["punctuation", "))"]
|
||||
]],
|
||||
"bar\r\n\r\n",
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "===="],
|
||||
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], "double quotes", ["punctuation", "''"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "single quotes", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "monospace", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "monospace", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "unquoted", ["punctuation", "#"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "++"], "monospace", ["punctuation", "++"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "##"], "unquoted", ["punctuation", "##"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "~"], "subscript", ["punctuation", "~"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "^"], "superscript", ["punctuation", "^"]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "((("], "indexes", ["punctuation", ")))"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "(("], "indexes", ["punctuation", "))"]
|
||||
]],
|
||||
|
||||
["punctuation", "===="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|===="],
|
||||
["punctuation", "|"],
|
||||
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], "double quotes", ["punctuation", "''"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "single quotes", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "monospace", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "monospace", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "unquoted", ["punctuation", "#"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "++"], "monospace", ["punctuation", "++"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "##"], "unquoted", ["punctuation", "##"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "~"], "subscript", ["punctuation", "~"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "^"], "superscript", ["punctuation", "^"]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "((("], "indexes", ["punctuation", ")))"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "(("], "indexes", ["punctuation", "))"]
|
||||
]],
|
||||
|
||||
["punctuation", "|===="]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
"foo ", ["inline", [["bold", [["punctuation", "*"], "bar", ["punctuation", "*"]]]]], " baz",
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "=="],
|
||||
" foo ", ["inline", [["bold", [["punctuation", "*"], "bar", ["punctuation", "*"]]]]], " baz ",
|
||||
["punctuation", "=="]
|
||||
]],
|
||||
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "="],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "?"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "!"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "#"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "%"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "@"],
|
||||
"regexp", ["punctuation", ":"],
|
||||
"value1", ["punctuation", ":"],
|
||||
"value2",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "$"],
|
||||
"regexp", ["punctuation", ":"],
|
||||
"value1", ["punctuation", ":"],
|
||||
"value2",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "$"],
|
||||
"regexp", ["punctuation", "::"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "foo,bar"],
|
||||
["operator", "="],
|
||||
"foobar",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "foo+bar"],
|
||||
["operator", "="],
|
||||
"foobar",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "counter"],
|
||||
["punctuation", ":"],
|
||||
"attrname",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all kinds of inline quoted text.
|
@ -0,0 +1,18 @@
|
||||
Foo +
|
||||
bar
|
||||
|
||||
* Foo
|
||||
+
|
||||
bar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"Foo ", ["line-continuation", "+"], "\r\nbar\r\n\r\n",
|
||||
["list-punctuation", "*"], " Foo\r\n",
|
||||
["line-continuation", "+"], "\r\nbar"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for line continuations.
|
@ -0,0 +1,73 @@
|
||||
In::
|
||||
Lorem::
|
||||
Foo bar baz
|
||||
Dolor:::
|
||||
Ipsum::::
|
||||
Donec;;
|
||||
Foobar
|
||||
|
||||
____
|
||||
In::
|
||||
Lorem::
|
||||
Foo bar baz
|
||||
Dolor:::
|
||||
Ipsum::::
|
||||
Donec;;
|
||||
Foobar
|
||||
____
|
||||
|
||||
|========
|
||||
|
|
||||
In::
|
||||
Lorem::
|
||||
Foo bar baz
|
||||
Dolor:::
|
||||
Ipsum::::
|
||||
Donec;;
|
||||
Foobar
|
||||
|========
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["list-label", "In::"],
|
||||
["list-label", "Lorem::"],
|
||||
"\r\n Foo bar baz\r\n",
|
||||
["list-label", "Dolor:::"],
|
||||
["list-label", "Ipsum::::"],
|
||||
["list-label", "Donec;;"],
|
||||
"\r\n Foobar\r\n\r\n",
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "____"],
|
||||
|
||||
["list-label", "In::"],
|
||||
["list-label", "Lorem::"],
|
||||
"\r\n Foo bar baz\r\n",
|
||||
["list-label", "Dolor:::"],
|
||||
["list-label", "Ipsum::::"],
|
||||
["list-label", "Donec;;"],
|
||||
"\r\n Foobar\r\n",
|
||||
|
||||
["punctuation", "____"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|========"],
|
||||
["punctuation", "|"],
|
||||
|
||||
["list-label", "In::"],
|
||||
["list-label", "Lorem::"],
|
||||
"\r\n Foo bar baz\r\n",
|
||||
["list-label", "Dolor:::"],
|
||||
["list-label", "Ipsum::::"],
|
||||
["list-label", "Donec;;"],
|
||||
"\r\n Foobar\r\n",
|
||||
|
||||
["punctuation", "|========"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for list labels.
|
@ -0,0 +1,77 @@
|
||||
- Foo
|
||||
* Foo
|
||||
** Foo bar
|
||||
*** Foo
|
||||
1. Foo
|
||||
2. Foo bar
|
||||
42. Foo
|
||||
**** Foo
|
||||
***** Foo bar
|
||||
|
||||
. Foo
|
||||
.. Foo
|
||||
a. Foo
|
||||
b. Foo
|
||||
z. Foo
|
||||
... Foo bar
|
||||
.... Foo
|
||||
i) Foo
|
||||
vi) Bar
|
||||
xxvii) Baz
|
||||
..... Foo
|
||||
|
||||
____
|
||||
. 1
|
||||
.. 2
|
||||
____
|
||||
|
||||
|===
|
||||
|
|
||||
xi) a
|
||||
xii) b
|
||||
|===
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["list-punctuation", "-"], " Foo\r\n",
|
||||
["list-punctuation", "*"], " Foo\r\n",
|
||||
["list-punctuation", "**"], " Foo bar\r\n",
|
||||
["list-punctuation", "***"], " Foo\r\n\t",
|
||||
["list-punctuation", "1."], " Foo\r\n\t",
|
||||
["list-punctuation", "2."], " Foo bar\r\n\t",
|
||||
["list-punctuation", "42."], " Foo\r\n",
|
||||
["list-punctuation", "****"], " Foo\r\n",
|
||||
["list-punctuation", "*****"], " Foo bar\r\n\r\n",
|
||||
|
||||
["list-punctuation", "."], " Foo\r\n",
|
||||
["list-punctuation", ".."], " Foo\r\n ",
|
||||
["list-punctuation", "a."], " Foo\r\n ",
|
||||
["list-punctuation", "b."], " Foo\r\n ",
|
||||
["list-punctuation", "z."], " Foo\r\n",
|
||||
["list-punctuation", "..."], " Foo bar\r\n",
|
||||
["list-punctuation", "...."], " Foo\r\n\t",
|
||||
["list-punctuation", "i)"], " Foo\r\n\t",
|
||||
["list-punctuation", "vi)"], " Bar\r\n\t",
|
||||
["list-punctuation", "xxvii)"], " Baz\r\n",
|
||||
["list-punctuation", "....."], " Foo\r\n\r\n",
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "____"],
|
||||
["list-punctuation", "."], " 1\r\n",
|
||||
["list-punctuation", ".."], " 2\r\n",
|
||||
["punctuation", "____"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|==="],
|
||||
["punctuation", "|"],
|
||||
["list-punctuation", "xi)"], " a\r\n",
|
||||
["list-punctuation", "xii)"], " b\r\n",
|
||||
["punctuation", "|==="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for list punctuation.
|
@ -0,0 +1,46 @@
|
||||
----
|
||||
== Foobar ==
|
||||
Bar _baz_ (TM) <1>
|
||||
* Foo <2>
|
||||
<1> Foobar
|
||||
2> Baz
|
||||
----
|
||||
|
||||
.......
|
||||
.Foo
|
||||
. Foobar <1>
|
||||
include::addendum.txt <2>
|
||||
> Foo
|
||||
> Bar
|
||||
__Foo__**bar**{baz}
|
||||
.......
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["literal-block", [
|
||||
["punctuation", "----"],
|
||||
"\r\n== Foobar ==\r\nBar _baz_ (TM) ",
|
||||
["callout", "<1>"],
|
||||
"\r\n* Foo ",
|
||||
["callout", "<2>"],
|
||||
["callout", "<1>"], " Foobar\r\n",
|
||||
["callout", "2>"], " Baz\r\n",
|
||||
["punctuation", "----"]
|
||||
]],
|
||||
["literal-block", [
|
||||
["punctuation", "......."],
|
||||
"\r\n.Foo\r\n. Foobar ",
|
||||
["callout", "<1>"],
|
||||
"\r\ninclude::addendum.txt ",
|
||||
["callout", "<2>"],
|
||||
["callout", ">"], " Foo\r\n",
|
||||
["callout", ">"], " Bar\r\n__Foo__**bar**{baz}\r\n",
|
||||
["punctuation", "......."]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for literal blocks and listing blocks.
|
||||
Also checks that nothing gets highlighted inside expect callouts.
|
@ -0,0 +1,250 @@
|
||||
footnote:[An example footnote.]
|
||||
indexterm:[Tigers,Big cats]
|
||||
|
||||
http://www.docbook.org/[DocBook.org]
|
||||
include::chapt1.txt[tabsize=2]
|
||||
mailto:srackham@gmail.com[]
|
||||
|
||||
image:screen-thumbnail.png[height=32,link="screen.png"]
|
||||
|
||||
== Foo image:foo.jpg[] ==
|
||||
|
||||
--
|
||||
footnote:[An example footnote.]
|
||||
indexterm:[Tigers,Big cats]
|
||||
|
||||
http://www.docbook.org/[DocBook.org]
|
||||
include::chapt1.txt[tabsize=2]
|
||||
mailto:srackham@gmail.com[]
|
||||
|
||||
image:screen-thumbnail.png[height=32,link="screen.png"]
|
||||
--
|
||||
|
||||
|====
|
||||
|
|
||||
footnote:[An example footnote.]
|
||||
indexterm:[Tigers,Big cats]
|
||||
|
||||
http://www.docbook.org/[DocBook.org]
|
||||
include::chapt1.txt[tabsize=2]
|
||||
mailto:srackham@gmail.com[]
|
||||
|
||||
image:screen-thumbnail.png[height=32,link="screen.png"]
|
||||
|====
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["macro", [
|
||||
["function", "footnote"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "An example footnote."],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "indexterm"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Tigers"],
|
||||
["punctuation", ","],
|
||||
["attr-value", "Big cats"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//www.docbook.org/",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "DocBook.org"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "include"], ["punctuation", "::"],
|
||||
"chapt1.txt",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "tabsize"],
|
||||
["operator", "="],
|
||||
["attr-value", "2"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "mailto"], ["punctuation", ":"],
|
||||
"srackham@gmail.com",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"screen-thumbnail.png",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "height"],
|
||||
["operator", "="],
|
||||
["attr-value", "32"],
|
||||
["punctuation", ","],
|
||||
["variable", "link"],
|
||||
["operator", "="],
|
||||
["string", "\"screen.png\""],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "=="],
|
||||
" Foo ",
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"foo.jpg",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "=="]
|
||||
]],
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "--"],
|
||||
|
||||
["macro", [
|
||||
["function", "footnote"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "An example footnote."],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "indexterm"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Tigers"],
|
||||
["punctuation", ","],
|
||||
["attr-value", "Big cats"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//www.docbook.org/",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "DocBook.org"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "include"], ["punctuation", "::"],
|
||||
"chapt1.txt",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "tabsize"],
|
||||
["operator", "="],
|
||||
["attr-value", "2"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "mailto"], ["punctuation", ":"],
|
||||
"srackham@gmail.com",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"screen-thumbnail.png",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "height"],
|
||||
["operator", "="],
|
||||
["attr-value", "32"],
|
||||
["punctuation", ","],
|
||||
["variable", "link"],
|
||||
["operator", "="],
|
||||
["string", "\"screen.png\""],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["punctuation", "--"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|===="],
|
||||
["punctuation", "|"],
|
||||
|
||||
["macro", [
|
||||
["function", "footnote"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "An example footnote."],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "indexterm"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Tigers"],
|
||||
["punctuation", ","],
|
||||
["attr-value", "Big cats"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//www.docbook.org/",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "DocBook.org"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "include"], ["punctuation", "::"],
|
||||
"chapt1.txt",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "tabsize"],
|
||||
["operator", "="],
|
||||
["attr-value", "2"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "mailto"], ["punctuation", ":"],
|
||||
"srackham@gmail.com",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"screen-thumbnail.png",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "height"],
|
||||
["operator", "="],
|
||||
["attr-value", "32"],
|
||||
["punctuation", ","],
|
||||
["variable", "link"],
|
||||
["operator", "="],
|
||||
["string", "\"screen.png\""],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["punctuation", "|===="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for macros.
|
@ -0,0 +1,45 @@
|
||||
****
|
||||
Sidebar block <1>
|
||||
****
|
||||
|
||||
______
|
||||
Quote block <2>
|
||||
______
|
||||
|
||||
========
|
||||
Example block <3>
|
||||
========
|
||||
|
||||
--
|
||||
Open block <4>
|
||||
--
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["other-block", [
|
||||
["punctuation", "****"],
|
||||
"\r\nSidebar block <1>\r\n",
|
||||
["punctuation", "****"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "______"],
|
||||
"\r\nQuote block <2>\r\n",
|
||||
["punctuation", "______"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "========"],
|
||||
"\r\nExample block <3>\r\n",
|
||||
["punctuation", "========"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "--"],
|
||||
"\r\nOpen block <4>\r\n",
|
||||
["punctuation", "--"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for sidebar blocks, quote blocks, example blocks and open blocks.
|
||||
Also checks that callouts are not highlighted.
|
@ -0,0 +1,14 @@
|
||||
<<<
|
||||
|
||||
<<<<<<<<<<<<<
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["page-break", "<<<"],
|
||||
["page-break", "<<<<<<<<<<<<<"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for page breaks.
|
@ -0,0 +1,29 @@
|
||||
++++
|
||||
.Fo__o__bar *baz*
|
||||
Fo(((o)))bar baz
|
||||
* Foobar baz
|
||||
include::addendum.txt[]
|
||||
++++
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["passthrough-block", [
|
||||
["punctuation", "++++"],
|
||||
"\r\n.Fo__o__bar *baz*\r\nFo(((o)))bar baz\r\n* Foobar baz\r\n",
|
||||
["macro", [
|
||||
["function", "include"],
|
||||
["punctuation", "::"],
|
||||
"addendum.txt",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "++++"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for passthrough blocks.
|
||||
Also checks that nothing gets highlighted inside expect macros.
|
@ -0,0 +1,48 @@
|
||||
(C) (TM) (R)
|
||||
|
||||
(C) (TM) (R)
|
||||
============
|
||||
|
||||
['(C) (TM) (R)']
|
||||
|
||||
--
|
||||
(C) (TM) (R)
|
||||
--
|
||||
|
||||
|======
|
||||
| (C) (TM) (R)
|
||||
|======
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["title", [
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["punctuation", "============"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "--"],
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["punctuation", "--"]
|
||||
]],
|
||||
["table", [
|
||||
["punctuation", "|======"],
|
||||
["punctuation", "|"],
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["punctuation", "|======"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for replacements.
|
@ -0,0 +1,61 @@
|
||||
|===
|
||||
|1
|
||||
|===
|
||||
|
||||
|============================
|
||||
|1 >s|2 |3 |4
|
||||
^|5 2.2+^.^|6 .3+<.>m|7
|
||||
2*^|8
|
||||
|9 2+>|10
|
||||
|============================
|
||||
|
||||
|==============================================
|
||||
|Normal cell
|
||||
|
||||
|Cell with nested table
|
||||
|
||||
!==============================================
|
||||
!Nested table cell 1 !Nested table cell 2
|
||||
!==============================================
|
||||
|
||||
|==============================================
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["table", [
|
||||
["punctuation", "|==="],
|
||||
["punctuation", "|"], "1\r\n",
|
||||
["punctuation", "|==="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|============================"],
|
||||
["punctuation", "|"], "1 ",
|
||||
["specifiers", ">s"], ["punctuation", "|"], "2 ",
|
||||
["punctuation", "|"], "3 ",
|
||||
["punctuation", "|"], "4\r\n",
|
||||
["specifiers", "^"], ["punctuation", "|"], "5 ",
|
||||
["specifiers", "2.2+^.^"], ["punctuation", "|"], "6 ",
|
||||
["specifiers", ".3+<.>m"], ["punctuation", "|"], "7\r\n",
|
||||
["specifiers", "2*^"], ["punctuation", "|"], "8\r\n",
|
||||
["punctuation", "|"], "9 ",
|
||||
["specifiers", "2+>"], ["punctuation", "|"], "10\r\n",
|
||||
["punctuation", "|============================"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|=============================================="],
|
||||
["punctuation", "|"], "Normal cell\r\n\r\n",
|
||||
["punctuation", "|"], "Cell with nested table\r\n\r\n",
|
||||
["punctuation", "!=============================================="],
|
||||
["punctuation", "!"], "Nested table cell 1 ",
|
||||
["punctuation", "!"], "Nested table cell 2\r\n",
|
||||
["punctuation", "!=============================================="],
|
||||
["punctuation", "|=============================================="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for tables.
|
@ -0,0 +1,80 @@
|
||||
Foobar
|
||||
======
|
||||
|
||||
Foobar
|
||||
------
|
||||
|
||||
Foobar
|
||||
~~~~~~
|
||||
|
||||
Foobar
|
||||
^^^^^^
|
||||
|
||||
Foo
|
||||
+++
|
||||
|
||||
= Foo bar baz =
|
||||
== Foo bar baz
|
||||
=== Foo bar baz ===
|
||||
==== Foo bar baz
|
||||
===== Foo bar baz =====
|
||||
|
||||
.Foo bar baz
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["title", [
|
||||
"Foobar\r\n",
|
||||
["punctuation", "======"]
|
||||
]],
|
||||
["title", [
|
||||
"Foobar\r\n",
|
||||
["punctuation", "------"]
|
||||
]],
|
||||
["title", [
|
||||
"Foobar\r\n",
|
||||
["punctuation", "~~~~~~"]
|
||||
]],
|
||||
["title", [
|
||||
"Foobar\r\n",
|
||||
["punctuation", "^^^^^^"]
|
||||
]],
|
||||
["title", [
|
||||
"Foo\r\n",
|
||||
["punctuation", "+++"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "="],
|
||||
" Foo bar baz ",
|
||||
["punctuation", "="]
|
||||
]],
|
||||
["title", [
|
||||
["punctuation", "=="],
|
||||
" Foo bar baz"
|
||||
]],
|
||||
["title", [
|
||||
["punctuation", "==="],
|
||||
" Foo bar baz ",
|
||||
["punctuation", "==="]
|
||||
]],
|
||||
["title", [
|
||||
["punctuation", "===="],
|
||||
" Foo bar baz"
|
||||
]],
|
||||
["title", [
|
||||
["punctuation", "====="],
|
||||
" Foo bar baz ",
|
||||
["punctuation", "====="]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "."],
|
||||
"Foo bar baz"
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for titles.
|
Reference in New Issue
Block a user