(md_instance, **kwargs)
return inlinePatterns
Build the default set of inline patterns for Markdown.
Build the default set of inline patterns for Markdown.
Build the default set of inline patterns for Markdown .
def build_inlinepatterns(md_instance, **kwargs):
    """ Build the default set of inline patterns for Markdown. """
    inlinePatterns = odict.OrderedDict()
    inlinePatterns["backtick"] = BacktickPattern(BACKTICK_RE)
    inlinePatterns["escape"] = EscapePattern(ESCAPE_RE, md_instance)
    inlinePatterns["reference"] = ReferencePattern(REFERENCE_RE, md_instance)
    inlinePatterns["link"] = LinkPattern(LINK_RE, md_instance)
    inlinePatterns["image_link"] = ImagePattern(IMAGE_LINK_RE, md_instance)
    inlinePatterns["image_reference"] = \
            ImageReferencePattern(IMAGE_REFERENCE_RE, md_instance)
    inlinePatterns["short_reference"] = \
            ReferencePattern(SHORT_REF_RE, md_instance)
    inlinePatterns["autolink"] = AutolinkPattern(AUTOLINK_RE, md_instance)
    inlinePatterns["automail"] = AutomailPattern(AUTOMAIL_RE, md_instance)
    inlinePatterns["linebreak2"] = SubstituteTagPattern(LINE_BREAK_2_RE, 'br')
    inlinePatterns["linebreak"] = SubstituteTagPattern(LINE_BREAK_RE, 'br')
    if md_instance.safeMode != 'escape':
        inlinePatterns["html"] = HtmlPattern(HTML_RE, md_instance)
    inlinePatterns["entity"] = HtmlPattern(ENTITY_RE, md_instance)
    inlinePatterns["not_strong"] = SimpleTextPattern(NOT_STRONG_RE)
    inlinePatterns["strong_em"] = DoubleTagPattern(STRONG_EM_RE, 'strong,em')
    inlinePatterns["strong"] = SimpleTagPattern(STRONG_RE, 'strong')
    inlinePatterns["emphasis"] = SimpleTagPattern(EMPHASIS_RE, 'em')
    if md_instance.smart_emphasis:
        inlinePatterns["emphasis2"] = SimpleTagPattern(SMART_EMPHASIS_RE, 'em')
    else:
        inlinePatterns["emphasis2"] = SimpleTagPattern(EMPHASIS_2_RE, 'em')
    return inlinePatterns
def build_inlinepatterns ( md_instance , * * kwargs ) : inlinePatterns = odict . OrderedDict ( ) inlinePatterns [ "backtick" ] = BacktickPattern ( BACKTICK_RE ) inlinePatterns [ "escape" ] = EscapePattern ( ESCAPE_RE , md_instance ) inlinePatterns [ "reference" ] = ReferencePattern ( REFERENCE_RE , md_instance ) inlinePatterns [ "link" ] = LinkPattern ( LINK_RE , md_instance ) inlinePatterns [ "image_link" ] = ImagePattern ( IMAGE_LINK_RE , md_instance ) inlinePatterns [ "image_reference" ] = ImageReferencePattern ( IMAGE_REFERENCE_RE , md_instance ) inlinePatterns [ "short_reference" ] = ReferencePattern ( SHORT_REF_RE , md_instance ) inlinePatterns [ "autolink" ] = AutolinkPattern ( AUTOLINK_RE , md_instance ) inlinePatterns [ "automail" ] = AutomailPattern ( AUTOMAIL_RE , md_instance ) inlinePatterns [ "linebreak2" ] = SubstituteTagPattern ( LINE_BREAK_2_RE , 'br' ) inlinePatterns [ "linebreak" ] = SubstituteTagPattern ( LINE_BREAK_RE , 'br' ) if md_instance . safeMode != 'escape' : inlinePatterns [ "html" ] = HtmlPattern ( HTML_RE , md_instance ) inlinePatterns [ "entity" ] = HtmlPattern ( ENTITY_RE , md_instance ) inlinePatterns [ "not_strong" ] = SimpleTextPattern ( NOT_STRONG_RE ) inlinePatterns [ "strong_em" ] = DoubleTagPattern ( STRONG_EM_RE , 'strong,em' ) inlinePatterns [ "strong" ] = SimpleTagPattern ( STRONG_RE , 'strong' ) inlinePatterns [ "emphasis" ] = SimpleTagPattern ( EMPHASIS_RE , 'em' ) if md_instance . smart_emphasis : inlinePatterns [ "emphasis2" ] = SimpleTagPattern ( SMART_EMPHASIS_RE , 'em' ) else : inlinePatterns [ "emphasis2" ] = SimpleTagPattern ( EMPHASIS_2_RE , 'em' ) return inlinePatterns