Parse inline markup; call the parse() method.
There are no base classes.
There are no implemented interfaces.
closers
(type:
str
)
'\'")]}>'
dispatch
(type:
dict
)
{'__': <function anonymous_reference at 0x41b37df4>, '`': <function interpreted_or_phrase_ref at 0x41b37aac>, '``': <function literal at 0x41b37bfc>, ']_': <function footnote_reference at 0x41b37cdc>, '*': <function emphasis at 0x41b37a3c>, '**': <function strong at 0x41b37a74>, '|': <function substitution_reference at 0x41b37ca4>, '_': <function reference at 0x41b37d14>, '_`': <function inline_internal_target at 0x41b37c6c>}
email_pattern
(type:
str
)
'\n %(emailc)s+(?:\\.%(emailc)s+)* # name\n (?<!\\x00)@ # at\n %(emailc)s+(?:\\.%(emailc)s*)* # host\n %(uri_end)s # final URI char\n '
emailc
(type:
str
)
"[-_!~*'{|}/#?^`&=+$%a-zA-Z0-9\\x00]"
end_string_suffix
(type:
str
)
'((?=$)|(?=[-/:.,;!? \\n\\x00\\\'\\"\\)\\]\\}\\>]))'
non_whitespace_after
(type:
str
)
'(?![ \\n])'
non_whitespace_before
(type:
str
)
'(?<![ \\n])'
non_whitespace_escape_before
(type:
str
)
'(?<![ \\n\\x00])'
openers
(type:
str
)
'\'"([{<'
parts
(type:
tuple
)
('initial_inline', '((?<=^)|(?<=[-/: \\n\\\'\\"\\(\\[\\{\\<]))', '', [('start', '', '(?![ \\n])', ['\\*\\*', '\\*(?!\\*)', '``', '_`', '\\|(?!\\|)']), ('whole', '', '((?=$)|(?=[-/:.,;!? \\n\\x00\\\'\\"\\)\\]\\}\\>]))', ['(?P<refname>(?:(?!_)\\w)+(?:[-._](?:(?!_)\\w)+)*)(?P<refend>__?)', ('footnotelabel', '\\[', '(?P<fnend>\\]_)', ['[0-9]+', '\\#((?:(?!_)\\w)+(?:[-._](?:(?!_)\\w)+)*)?', '\\*', '(?P<citationlabel>(?:(?!_)\\w)+(?:[-._](?:(?!_)\\w)+)*)'])]), ('backquote', '(?P<role>(:(?:(?!_)\\w)+(?:[-._](?:(?!_)\\w)+)*:)?)', '(?![ \\n])', ['`(?!`)'])])
patterns
(type: instance
)
<docutils.parsers.rst.states.Struct instance at 0x41f5bfec>
pep_url
(type:
str
)
'pep-%04d.html'
rfc_url
(type:
str
)
'rfc%d.html'
simplename
(type:
str
)
'(?:(?!_)\\w)+(?:[-._](?:(?!_)\\w)+)*'
start_string_prefix
(type:
str
)
'((?<=^)|(?<=[-/: \\n\\\'\\"\\(\\[\\{\\<]))'
uri_end
(type:
str
)
"(?:[_~*/=+a-zA-Z0-9]|[-_.!~*'()[\\];/:@&=+$,%a-zA-Z0-9\\x00](?=[>]))"
uri_end_delim
(type:
str
)
'[>]'
uric
(type:
str
)
"[-_.!~*'()[\\];/:@&=+$,%a-zA-Z0-9\\x00]"
urilast
(type:
str
)
'[_~*/=+a-zA-Z0-9]'
adjust_uri(uri)
anonymous_reference(match, lineno)
emphasis(match, lineno)
footnote_reference(match, lineno)
Handles nodes.footnote_reference and nodes.citation_reference elements.
implicit_inline(text, lineno)
Check each of the patterns in self.implicit_dispatch for a match, and dispatch to the stored method for the pattern. Recursively check the text before and after the match. Return a list of nodes.Text and inline element nodes.
init_customizations(settings)
Setting-based customizations; run when parsing begins.
inline_internal_target(match, lineno)
inline_obj(match, lineno, end_pattern, nodeclass, restore_backslashes=0)
interpreted(rawsource, text, role, lineno)
interpreted_or_phrase_ref(match, lineno)
literal(match, lineno)
parse(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.
pep_reference(match, lineno)
phrase_ref(before, after, rawsource, escaped, text)
problematic(text, rawsource, message)
quoted_start(match)
Return 1 if inline markup start-string is 'quoted', 0 if not.
reference(match, lineno, anonymous=None)
rfc_reference(match, lineno)
standalone_uri(match, lineno)
strong(match, lineno)
substitution_reference(match, lineno)
There are no known subclasses.