|
|
| __init__ (self) |
| |
|
| init_customizations (self, settings) |
| |
| | parse (self, text, lineno, memo, parent) |
| |
| | quoted_start (self, match) |
| |
|
| inline_obj (self, match, lineno, end_pattern, nodeclass, restore_backslashes=False) |
| |
|
| problematic (self, text, rawsource, message) |
| |
|
| emphasis (self, match, lineno) |
| |
|
| strong (self, match, lineno) |
| |
|
| interpreted_or_phrase_ref (self, match, lineno) |
| |
|
| phrase_ref (self, before, after, rawsource, escaped, text=None) |
| |
|
| adjust_uri (self, uri) |
| |
|
| interpreted (self, rawsource, text, role, lineno) |
| |
|
| literal (self, match, lineno) |
| |
|
| inline_internal_target (self, match, lineno) |
| |
|
| substitution_reference (self, match, lineno) |
| |
| | footnote_reference (self, match, lineno) |
| |
|
| reference (self, match, lineno, anonymous=False) |
| |
|
| anonymous_reference (self, match, lineno) |
| |
|
| standalone_uri (self, match, lineno) |
| |
|
| pep_reference (self, match, lineno) |
| |
|
| rfc_reference (self, match, lineno) |
| |
| | implicit_inline (self, text, lineno) |
| |
|
|
str | non_whitespace_before = r'(?<!\s)' |
| |
|
str | non_whitespace_escape_before = r'(?<![\s\x00])' |
| |
|
str | non_unescaped_whitespace_escape_before = r'(?<!(?<!\x00)[\s\x00])' |
| |
|
str | non_whitespace_after = r'(?!\s)' |
| |
|
str | simplename = r'(?:(?!_)\w)+(?:[-._+:](?:(?!_)\w)+)*' |
| |
|
str | uric = r"""[-_.!~*'()[\];/:@&=+$,%a-zA-Z0-9\x00]""" |
| |
|
str | uri_end_delim = r"""[>]""" |
| |
|
str | urilast = r"""[_~*/=+a-zA-Z0-9]""" |
| |
|
str | uri_end = r"""(?:%(urilast)s|%(uric)s(?=%(uri_end_delim)s))""" % locals() |
| |
|
str | emailc = r"""[-_!~*'{|}/#?^`&=+$%a-zA-Z0-9\x00]""" |
| |
| str | email_pattern |
| |
|
str | rfc_url = 'rfc%d.html' |
| |
| dict | dispatch |
| |
Parse inline markup; call the `parse()` method.
| docutils.parsers.rst.states.Inliner.parse |
( |
|
self, |
|
|
|
text, |
|
|
|
lineno, |
|
|
|
memo, |
|
|
|
parent |
|
) |
| |
Return 2 lists: nodes (text and inline elements), and system_messages.
Using `self.patterns.initial`, a pattern which matches start-strings
(emphasis, strong, interpreted, phrase reference, literal,
substitution reference, and inline target) and complete constructs
(simple reference, footnote reference), search for a candidate. When
one is found, check for validity (e.g., not a quoted '*' character).
If valid, search for the corresponding end string if applicable, and
check it for validity. If not found or invalid, generate a warning
and ignore the start-string. Implicit inline markup (e.g. standalone
URIs) is found last.
:text: source string
:lineno: absolute line number (cf. statemachine.get_source_and_line())