mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Add full-width punctuation characters to MD026/no-trailing-punctuation and MD036/no-emphasis-as-heading (fixes #192).
This commit is contained in:
parent
fa40084994
commit
1d8b9e7e62
8 changed files with 45 additions and 25 deletions
|
@ -24,6 +24,9 @@ module.exports.orderedListItemMarkerRe = /^[\s>]*0*(\d+)[.)]/;
|
|||
// readFile options for reading with the UTF-8 encoding
|
||||
module.exports.utf8Encoding = { "encoding": "utf8" };
|
||||
|
||||
// All punctuation characters (normal and full-width)
|
||||
module.exports.allPunctuation = ".,;:!?。,;:!?";
|
||||
|
||||
// Returns true iff the input is a number
|
||||
module.exports.isNumber = function isNumber(obj) {
|
||||
return typeof obj === "number";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue