mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Reimplement MD048/code-fence-style using micromark tokens.
This commit is contained in:
parent
807fee01b1
commit
f0d691b1ed
3 changed files with 38 additions and 28 deletions
|
|
@ -380,7 +380,7 @@ function getTokenParentOfType(token, types) {
|
|||
* Get the text of the first match from a list of Micromark tokens by type.
|
||||
*
|
||||
* @param {Token[]} tokens Micromark tokens.
|
||||
* @param {string} type Types to match.
|
||||
* @param {string} type Type to match.
|
||||
* @returns {string | null} Text of token.
|
||||
*/
|
||||
function getTokenTextByType(tokens, type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue