-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
MD022 - Headings should be surrounded by blank lines
Since the regexp for VIEWPORT['markdown'] requires "Header beginning" (Note, this is also a typo).
VIEWPORT = {
'default':
re.compile(
r'^' # Starts at the begging of the line
r'[=]+' # Heading begging
r'(?P<name>[^=\|\[\{]*)' # Name of the viewport, all before the | sign
# Cannot include '[', '=', '|', and '{'
r'\|' # Bar
r'(?!\|)' # (But not two, that would be a preset)
r'(?P<filter>[^=\|]*?)' # Filter
r'(' # Optional defaults
r'\|' # Bar
r'(?P<defaults>[^=\|]+?)' # Default attrs
r')?'
r'\s*' # Any whitespace
r'(#(?P<source>[A-Z]))?' # Optional source indicator
r'\s*' # Any whitespace
r'(\$(?P<sort>[A-Z]))?' # Optional sort indicator
r'\s*' # Any whitespace
r'[=]+' # Header ending
),
'markdown':
re.compile(
r'^' # Starts at the begging of the line
r'[#]+' # Heading begging
r'(?P<name>[^#\|\[\{]*)' # Name of the viewport, all before the | sign
# Cannot include '[', '#', '|', and '{'
r'\|' # Bar
r'(?!\|)' # (But not two, that would be a preset)
r'(?P<filter>[^#\|]*?)' # Filter
r'(' # Optional defaults
r'\|' # Bar
r'(?P<defaults>[^#\|]+?)' # Default attrs
r')?'
r'\s*' # Any whitespace
r'(#(?P<source>[A-Z]))?' # Optional source indicator
r'\s*' # Any whitespace
r'(\$(?P<sort>[A-Z]))?' # Optional sort indicator
r'\s*' # Any whitespace
r'$' # End of line
)
}pacien
Metadata
Metadata
Assignees
Labels
No labels