Add full-width punctuation characters to MD026/no-trailing-punctuation and MD036/no-emphasis-as-heading (fixes #192).

This commit is contained in:
David Anson 2019-06-06 22:21:31 -07:00
parent fa40084994
commit 1d8b9e7e62
8 changed files with 45 additions and 25 deletions

View file

@ -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";