mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Add MD050/strong-style (fixes #150).
This commit is contained in:
parent
6294ad3ef0
commit
ab9e5875a2
23 changed files with 255 additions and 19 deletions
|
@ -181,6 +181,22 @@ module.exports.fencedCodeBlockStyleFor =
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Return the string representation of a emphasis or strong markup character.
|
||||
*
|
||||
* @param {string} markup Emphasis or strong string.
|
||||
* @returns {string} String representation.
|
||||
*/
|
||||
module.exports.emphasisOrStrongStyleFor =
|
||||
function emphasisOrStrongStyleFor(markup) {
|
||||
switch (markup[0]) {
|
||||
case "*":
|
||||
return "asterisk";
|
||||
default:
|
||||
return "underscore";
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Return the number of characters of indent for a token.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue