fixed il_link

This commit is contained in:
vicky 2022-03-16 15:12:24 +01:00
parent 9972c91431
commit b1129d60d3
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ se_end = (structural_elements + '>>').add_parse_action(of_type(StructuralElement
se = se_end | se_start # Structural element # TODO Check nomenclature
# Inline elements
il_link = pp.Literal('[') + ... + pp.Literal('](') + pp.QuotedString("'\"", esc_char='\\') + ')'
il_link = pp.Literal('[') + ... + pp.Literal('](') + quotes + http_characters + pp.match_previous_literal(quotes) + ')'
# Oneline elements
# TODO: one_header should match any number of '#' I suggest either a div_element=Word("#") or a div_element=OneOrMore(pp.Literal('#')) with a pp.match_previous_literal(dive=_element) # noqa E501 (line too long)