67
76
Inline emphasis start-string without end-string.
70
'*emphasis*' and 1/*emphasis*/2 and 3-*emphasis*-4 and 5:*emphasis*:6
71
but not '*' or '"*"' or x*2* or 2*x* or \\*args or *
72
or *the\\* *stars\\\\\\* *inside*
74
(however, '*args' will trigger a warning and may be problematic)
78
[r"""some punctuation is allowed around inline markup, e.g.
79
/*emphasis*/, -*emphasis*-, and :*emphasis*: (delimiters),
80
(*emphasis*), [*emphasis*], <*emphasis*>, {*emphasis*} (open/close pairs)
83
)*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs)
84
(*), [*], '*' or '"*"' ("quoted" start-string),
85
x*2* or 2*x* (alphanumeric char before),
86
\*args or * (escaped, whitespace behind start-string)
87
or *the\* *stars\* *inside* (escaped, whitespace before end-string).
89
However, '*args' will trigger a warning and may be problematic.
76
91
what about *this**?
79
94
<document source="test data">
94
but not '*' or '"*"' or x*2* or 2*x* or *args or *
96
some punctuation is allowed around inline markup, e.g.
122
)*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs)
123
(*), [*], '*' or '"*"' ("quoted" start-string),
124
x*2* or 2*x* (alphanumeric char before),
125
*args or * (escaped, whitespace behind start-string)
129
(escaped, whitespace before end-string).
100
132
<problematic ids="id2" refid="id1">
102
args' will trigger a warning and may be problematic)
103
<system_message backrefs="id2" ids="id1" level="2" line="5" source="test data" type="WARNING">
134
args' will trigger a warning and may be problematic.
135
<system_message backrefs="id2" ids="id1" level="2" line="12" source="test data" type="WARNING">
105
137
Inline emphasis start-string without end-string.
113
Emphasized asterisk: *\\**
115
Emphasized double asterisk: *\\***
145
Quotes around inline markup:
147
'*emphasis*' "*emphasis*" Straight,
148
‘*emphasis*’ “*emphasis*” English, ...,
149
« *emphasis* » ‹ *emphasis* › « *emphasis* » ‹ *emphasis* ›
150
« *emphasis* » ‹ *emphasis* › French,
151
„*emphasis*“ ‚*emphasis*‘ »*emphasis*« ›*emphasis*‹ German, Czech, ...,
152
„*emphasis*” «*emphasis*» Romanian,
153
“*emphasis*„ ‘*emphasis*‚ Greek,
154
「*emphasis*」 『*emphasis*』traditional Chinese,
155
”*emphasis*” ’*emphasis*’ »*emphasis*» ›*emphasis*› Swedish, Finnish,
156
„*emphasis*” ‚*emphasis*’ Polish,
157
„*emphasis*” »*emphasis*« ’*emphasis*’ Hungarian,
160
<document source="test data">
162
Quotes around inline markup:
181
\u202f\xbb \u2039\u202f
184
\u202f\u203a \xab\xa0
194
\u2005\xbb \u2039\u2005
210
\u2039 German, Czech, ...,
231
\u300ftraditional Chinese,
244
\u203a Swedish, Finnish,
264
Emphasized asterisk: *\**
266
Emphasized double asterisk: *\***
118
269
<document source="test data">
842
993
`embedded URI with no preceding whitespace<http://example.com>`__
844
`escaped URI \\<http://example.com>`__
995
`escaped URI \<http://example.com>`__
846
See `HTML Anchors: \\<a>`_.
997
See `HTML Anchors: \<a>`_.
849
1000
<document source="test data">
1246
1397
a.question.mark@end
1250
1401
Valid URLs with escaped markup characters:
1252
http://example.com/\\*content\\*/whatever
1403
http://example.com/\*content\*/whatever
1254
http://example.com/\\*content*/whatever
1405
http://example.com/\*content*/whatever
1257
1408
<document source="test data">
1342
1493
with backslash-escaped whitespace, including newlines.
1345
quoted '*emphasis*', quoted "*emphasis*",
1346
quoted \u2018*emphasis*\u2019, quoted \u201c*emphasis*\u201d,
1347
quoted \xab*emphasis*\xbb
1350
<document source="test data">
1362
\u2019, quoted \u201c
1372
1496
text-*separated*\u2010*by*\u2011*various*\u2012*dashes*\u2013*and*\u2014*hyphens*.
1373
\u00bf*punctuation*? \u00a1*examples*!\u00a0*too*.
1497
\u00bf*punctuation*? \u00a1*examples*!\u00a0*\u00a0no-break-space\u00a0*.
1376
1500
<document source="test data">
1409
None of these should be markup (matched openers & closers):
1411
\u2018*\u2019 \u201c*\u201d \xab*\xbb \u00bf*? \u00a1*!
1418
<document source="test data">
1420
None of these should be markup (matched openers & closers):
1422
\u2018*\u2019 \u201c*\u201d \xab*\xbb \xbf*? \xa1*!
1529
\u00a0no-break-space\u00a0
1532
# Whitespace characters:
1533
# \u180e*MONGOLIAN VOWEL SEPARATOR*\u180e, fails in Python 2.4
1537
or *space* or one of
1538
\xa0*NO-BREAK SPACE*\xa0,
1539
\u1680*OGHAM SPACE MARK*\u1680,
1540
\u2000*EN QUAD*\u2000,
1541
\u2001*EM QUAD*\u2001,
1542
\u2002*EN SPACE*\u2002,
1543
\u2003*EM SPACE*\u2003,
1544
\u2004*THREE-PER-EM SPACE*\u2004,
1545
\u2005*FOUR-PER-EM SPACE*\u2005,
1546
\u2006*SIX-PER-EM SPACE*\u2006,
1547
\u2007*FIGURE SPACE*\u2007,
1548
\u2008*PUNCTUATION SPACE*\u2008,
1549
\u2009*THIN SPACE*\u2009,
1550
\u200a*HAIR SPACE*\u200a,
1551
\u202f*NARROW NO-BREAK SPACE*\u202f,
1552
\u205f*MEDIUM MATHEMATICAL SPACE*\u205f,
1553
\u3000*IDEOGRAPHIC SPACE*\u3000,
1554
\u2028*LINE SEPARATOR*\u2028
1557
<document source="test data">
1621
NARROW NO-BREAK SPACE
1625
MEDIUM MATHEMATICAL SPACE
1635
# « * » ‹ * › « * » ‹ * › « * » ‹ * › French,
1637
"Quoted" markup start-string (matched openers & closers) -> no markup:
1639
'*' "*" (*) <*> [*] {*}
1642
Some international quoting styles:
1643
‘*’ “*” English, ...,
1644
„*“ ‚*‘ »*« ›*‹ German, Czech, ...,
1647
「*」 『*』traditional Chinese,
1648
”*” ’*’ »*» ›*› Swedish, Finnish,
1650
„*” »*« ’*’ Hungarian,
1652
But this is „*’ emphasized »*‹.
1655
<document source="test data">
1657
"Quoted" markup start-string (matched openers & closers) -> no markup:
1659
'*' "*" (*) <*> [*] {*}
1662
Some international quoting styles:
1663
‘*’ “*” English, ...,
1664
„*“ ‚*‘ »*« ›*‹ German, Czech, ...,
1667
「*」 『*』traditional Chinese,
1668
”*” ’*’ »*» ›*› Swedish, Finnish,
1670
„*” »*« ’*’ Hungarian,