Hash :
48fac3b2
Author :
Date :
2020-06-12T15:58:46
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
*bold*
**bold**
_italic_
__italic__
??cite??
@code@
+inserted+
-deleted-
%span%
^superscript^
~subscript~
*{color:red}bold*
__(foo#bar)[fr]italique__
%{text-decoration:underline}span *[en]bold*%
*_a_ __b__ ??c?? @d@ +e+ -f- %g% ^h^ ~i~*
**_a_ __b__ ??c?? @d@ +e+ -f- %g% ^h^ ~i~**
_*a* **b** ??c?? @d@ +e+ -f- %g% ^h^ ~i~_
__*a* **b** ??c?? @d@ +e+ -f- %g% ^h^ ~i~__
+*a* **b** _c_ __d__ ??e?? @f@ -g- %h% ^i^ ~j~+
-*a* **b** _c_ __d__ ??e?? @f@ +g+ %h% ^i^ ~j~-
%*a* **b** _c_ __d__ ??e?? @f@ +g+ -h- ^i^ ~j~%
not_italic_ _this_either
----------------------------------------------------
[
["phrase", [
["inline", [["punctuation", "*"], ["bold", ["bold"]], ["punctuation", "*"]]],
["inline", [["punctuation", "**"], ["bold", ["bold"]], ["punctuation", "**"]]],
["inline", [["punctuation", "_"], ["italic", ["italic"]], ["punctuation", "_"]]],
["inline", [["punctuation", "__"], ["italic", ["italic"]], ["punctuation", "__"]]],
["inline", [["punctuation", "??"], ["cite", "cite"], ["punctuation", "??"]]],
["inline", [["punctuation", "@"], ["code", "code"], ["punctuation", "@"]]],
["inline", [["punctuation", "+"], ["inserted", ["inserted"]], ["punctuation", "+"]]],
["inline", [["punctuation", "-"], ["deleted", ["deleted"]], ["punctuation", "-"]]],
["inline", [["punctuation", "%"], ["span", ["span"]], ["punctuation", "%"]]],
["inline", [["punctuation", "^"], "superscript", ["punctuation", "^"]]],
["inline", [["punctuation", "~"], "subscript", ["punctuation", "~"]]]
]],
["phrase", [
["inline", [
["punctuation", "*"],
["modifier", [
["css", ["{color:red}"]]
]],
["bold", ["bold"]],
["punctuation", "*"]
]],
["inline", [
["punctuation", "__"],
["modifier", [
["punctuation", "("], ["class-id", "foo#bar"], ["punctuation", ")"],
["punctuation", "["], ["lang", "fr"], ["punctuation", "]"]
]],
["italic", ["italique"]],
["punctuation", "__"]
]],
["inline", [
["punctuation", "%"],
["modifier", [
["css", ["{text-decoration:underline}"]]
]],
["span", [
"span ",
["inline", [
["punctuation", "*"],
["modifier", [
["punctuation", "["], ["lang", "en"], ["punctuation", "]"]
]],
["bold", ["bold"]],
["punctuation", "*"]
]]
]],
["punctuation", "%"]
]]
]],
["phrase", [
["inline", [["punctuation", "*"], ["bold", [
["inline", [["punctuation", "_"], ["italic", ["a"]], ["punctuation", "_"]]],
["inline", [["punctuation", "__"], ["italic", ["b"]], ["punctuation", "__"]]],
["inline", [["punctuation", "??"], ["cite", "c"], ["punctuation", "??"]]],
["inline", [["punctuation", "@"], ["code", "d"], ["punctuation", "@"]]],
["inline", [["punctuation", "+"], ["inserted", ["e"]], ["punctuation", "+"]]],
["inline", [["punctuation", "-"], ["deleted", ["f"]], ["punctuation", "-"]]],
["inline", [["punctuation", "%"], ["span", ["g"]], ["punctuation", "%"]]],
["inline", [["punctuation", "^"], "h", ["punctuation", "^"]]],
["inline", [["punctuation", "~"], "i", ["punctuation", "~"]]]
]], ["punctuation", "*"]]],
["inline", [["punctuation", "**"], ["bold", [
["inline", [["punctuation", "_"], ["italic", ["a"]], ["punctuation", "_"]]],
["inline", [["punctuation", "__"], ["italic", ["b"]], ["punctuation", "__"]]],
["inline", [["punctuation", "??"], ["cite", "c"], ["punctuation", "??"]]],
["inline", [["punctuation", "@"], ["code", "d"], ["punctuation", "@"]]],
["inline", [["punctuation", "+"], ["inserted", ["e"]], ["punctuation", "+"]]],
["inline", [["punctuation", "-"], ["deleted", ["f"]], ["punctuation", "-"]]],
["inline", [["punctuation", "%"], ["span", ["g"]], ["punctuation", "%"]]],
["inline", [["punctuation", "^"], "h", ["punctuation", "^"]]],
["inline", [["punctuation", "~"], "i", ["punctuation", "~"]]]
]], ["punctuation", "**"]]],
["inline", [["punctuation", "_"], ["italic", [
["inline", [["punctuation", "*"], ["bold", ["a"]], ["punctuation", "*"]]],
["inline", [["punctuation", "**"], ["bold", ["b"]], ["punctuation", "**"]]],
["inline", [["punctuation", "??"], ["cite", "c"], ["punctuation", "??"]]],
["inline", [["punctuation", "@"], ["code", "d"], ["punctuation", "@"]]],
["inline", [["punctuation", "+"], ["inserted", ["e"]], ["punctuation", "+"]]],
["inline", [["punctuation", "-"], ["deleted", ["f"]], ["punctuation", "-"]]],
["inline", [["punctuation", "%"], ["span", ["g"]], ["punctuation", "%"]]],
["inline", [["punctuation", "^"], "h", ["punctuation", "^"]]],
["inline", [["punctuation", "~"], "i", ["punctuation", "~"]]]
]], ["punctuation", "_"]]],
["inline", [["punctuation", "__"], ["italic", [
["inline", [["punctuation", "*"], ["bold", ["a"]], ["punctuation", "*"]]],
["inline", [["punctuation", "**"], ["bold", ["b"]], ["punctuation", "**"]]],
["inline", [["punctuation", "??"], ["cite", "c"], ["punctuation", "??"]]],
["inline", [["punctuation", "@"], ["code", "d"], ["punctuation", "@"]]],
["inline", [["punctuation", "+"], ["inserted", ["e"]], ["punctuation", "+"]]],
["inline", [["punctuation", "-"], ["deleted", ["f"]], ["punctuation", "-"]]],
["inline", [["punctuation", "%"], ["span", ["g"]], ["punctuation", "%"]]],
["inline", [["punctuation", "^"], "h", ["punctuation", "^"]]],
["inline", [["punctuation", "~"], "i", ["punctuation", "~"]]]
]], ["punctuation", "__"]]],
["inline", [["punctuation", "+"], ["inserted", [
["inline", [["punctuation", "*"], ["bold", ["a"]], ["punctuation", "*"]]],
["inline", [["punctuation", "**"], ["bold", ["b"]], ["punctuation", "**"]]],
["inline", [["punctuation", "_"], ["italic", ["c"]], ["punctuation", "_"]]],
["inline", [["punctuation", "__"], ["italic", ["d"]], ["punctuation", "__"]]],
["inline", [["punctuation", "??"], ["cite", "e"], ["punctuation", "??"]]],
["inline", [["punctuation", "@"], ["code", "f"], ["punctuation", "@"]]],
["inline", [["punctuation", "-"], ["deleted", ["g"]], ["punctuation", "-"]]],
["inline", [["punctuation", "%"], ["span", ["h"]], ["punctuation", "%"]]],
["inline", [["punctuation", "^"], "i", ["punctuation", "^"]]],
["inline", [["punctuation", "~"], "j", ["punctuation", "~"]]]
]], ["punctuation", "+"]]],
["inline", [["punctuation", "-"], ["deleted", [
["inline", [["punctuation", "*"], ["bold", ["a"]], ["punctuation", "*"]]],
["inline", [["punctuation", "**"], ["bold", ["b"]], ["punctuation", "**"]]],
["inline", [["punctuation", "_"], ["italic", ["c"]], ["punctuation", "_"]]],
["inline", [["punctuation", "__"], ["italic", ["d"]], ["punctuation", "__"]]],
["inline", [["punctuation", "??"], ["cite", "e"], ["punctuation", "??"]]],
["inline", [["punctuation", "@"], ["code", "f"], ["punctuation", "@"]]],
["inline", [["punctuation", "+"], ["inserted", ["g"]], ["punctuation", "+"]]],
["inline", [["punctuation", "%"], ["span", ["h"]], ["punctuation", "%"]]],
["inline", [["punctuation", "^"], "i", ["punctuation", "^"]]],
["inline", [["punctuation", "~"], "j", ["punctuation", "~"]]]
]], ["punctuation", "-"]]],
["inline", [["punctuation", "%"], ["span", [
["inline", [["punctuation", "*"], ["bold", ["a"]], ["punctuation", "*"]]],
["inline", [["punctuation", "**"], ["bold", ["b"]], ["punctuation", "**"]]],
["inline", [["punctuation", "_"], ["italic", ["c"]], ["punctuation", "_"]]],
["inline", [["punctuation", "__"], ["italic", ["d"]], ["punctuation", "__"]]],
["inline", [["punctuation", "??"], ["cite", "e"], ["punctuation", "??"]]],
["inline", [["punctuation", "@"], ["code", "f"], ["punctuation", "@"]]],
["inline", [["punctuation", "+"], ["inserted", ["g"]], ["punctuation", "+"]]],
["inline", [["punctuation", "-"], ["deleted", ["h"]], ["punctuation", "-"]]],
["inline", [["punctuation", "^"], "i", ["punctuation", "^"]]],
["inline", [["punctuation", "~"], "j", ["punctuation", "~"]]]
]], ["punctuation", "%"]]]
]],
["phrase", [
"not_italic_ _this_either"
]]
]
----------------------------------------------------
Checks for inline styles and nesting.