Update MD026/no-trailing-punctuation to ignore the trailing semicolon of HTML entity references (fixes #320).

This commit is contained in:
David Anson 2020-11-23 15:23:39 -08:00
parent 09c5736385
commit c693a9a3d8
3 changed files with 33 additions and 1 deletions

View file

@ -922,6 +922,10 @@ allowed by default because of how common it is in headings of FAQ-style document
Setting the `punctuation` parameter to `""` allows all characters - and is
equivalent to disabling the rule.
Note: The trailing semicolon of
[HTML entity references](https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references)
like `©`, `©`, and `©` is ignored by this rule.
Rationale: Headings are not meant to be full sentences. More information:
<https://cirosantilli.com/markdown-style-guide#punctuation-at-the-end-of-headers>