Reimplement MD048/code-fence-style using micromark tokens.

This commit is contained in:
David Anson 2024-02-19 20:42:12 -08:00
parent 807fee01b1
commit f0d691b1ed
3 changed files with 38 additions and 28 deletions

View file

@ -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) {