mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
lint: Require space after headings in markdown.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#Mention a Team Member
|
# Mention a Team Member
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
@@ -185,6 +185,9 @@ def build_custom_checkers(by_lang):
|
|||||||
{'pattern': '((?<!\s)\s$)|(\s\s\s+$)|(^\s+$)',
|
{'pattern': '((?<!\s)\s$)|(\s\s\s+$)|(^\s+$)',
|
||||||
'strip': '\n',
|
'strip': '\n',
|
||||||
'description': 'Fix trailing whitespace'},
|
'description': 'Fix trailing whitespace'},
|
||||||
|
{'pattern': '^#+[A-Za-z0-9]',
|
||||||
|
'strip': '\n',
|
||||||
|
'description': 'Missing space after # in heading'},
|
||||||
] # type: RuleList
|
] # type: RuleList
|
||||||
js_rules = cast(RuleList, [
|
js_rules = cast(RuleList, [
|
||||||
{'pattern': '[^_]function\(',
|
{'pattern': '[^_]function\(',
|
||||||
|
|||||||
Reference in New Issue
Block a user