Class InlineGrammar¶
- Defined in File mistunege.py
Class Documentation¶
-
class
InlineGrammar
¶ Grammars for inline level tokens.
Public Functions
-
hard_wrap
(self self)¶ Grammar for hard wrap linebreak. You don't need to add two spaces at the end of a line.
Public Static Attributes
-
pymdtools.mistunege.InlineGrammar.escape = re.compile(r'^\([\`*{}[]()#+-.!_>~|])')
-
pymdtools.mistunege.InlineGrammar.inline_html= re.compile( r'^(?:%s|%s|%s)' % ( r'<!--[sS]*?-->', r'<(w+%s)((?:%s)*?)s*>([sS]*?)</1>' % (_valid_end, _valid_attr), r'<w+%s(?:%s)*?s*/?>' % (_valid_end, _valid_attr), ) )
-
pymdtools.mistunege.InlineGrammar.autolink = re.compile(r'^<([^ >]+(@|:)[^ >]+)>')
-
pymdtools.mistunege.InlineGrammar.link= re.compile( r'^!?[(' r'(?:[[^^]]*]|[^[]]|](?=[^[]*]))*' r')](' r')' )
-
pymdtools.mistunege.InlineGrammar.reflink= re.compile( r'^!?[(' r'(?:[[^^]]*]|[^[]]|](?=[^[]*]))*' r')]s*[([^^]]*)]' )
-
pymdtools.mistunege.InlineGrammar.nolink = re.compile(r'^!?[((?:[[^]]*]|[^[]])*)]')
-
pymdtools.mistunege.InlineGrammar.url = re.compile()
-
pymdtools.mistunege.InlineGrammar.double_emphasis= re.compile( r'^_{2}([sS]+?)_{2}(?!_)' # __word__ r'|' r'^*{2}([sS]+?)*{2}(?!*)' # **word** )
-
pymdtools.mistunege.InlineGrammar.emphasis= re.compile( r'^b_((?:__|[^_])+?)_b' # _word_ r'|' r'^*((?:**|[^*])+?)*(?!*)' # *word* )
-
pymdtools.mistunege.InlineGrammar.code = re.compile(r'^(`+)s*([sS]*?[^`])s*1(?!`)')
-
pymdtools.mistunege.InlineGrammar.linebreak = re.compile(r'^ {2,}n(?!s*$)')
-
pymdtools.mistunege.InlineGrammar.strikethrough = re.compile(r'^~~(?=S)([sS]*?S)~~')
-
pymdtools.mistunege.InlineGrammar.footnote = re.compile(r'^[^([^]]+)]')
-
pymdtools.mistunege.InlineGrammar.text = re.compile(r'^[sS]+?(?=[\<![_*`~]|https?://| {2,}n|$)')
-