We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 055219c commit f8d5c7dCopy full SHA for f8d5c7d
src/utils/queries/unist.mjs
@@ -1,8 +1,8 @@
1
import {
2
LINKS_WITH_TYPES,
3
MARKDOWN_URL,
4
- NAME_EXPRESSION,
5
STABILITY_INDEX,
+ TYPE_EXPRESSION,
6
TYPED_LIST_STARTERS,
7
UNIX_MANUAL_PAGE,
8
YAML_INNER_CONTENT,
@@ -29,7 +29,7 @@ export const isYamlNode = ({ type, value }) =>
29
* @returns {boolean}
30
*/
31
export const isTextWithType = ({ type, value }) =>
32
- type === 'text' && NAME_EXPRESSION.test(value);
+ type === 'text' && TYPE_EXPRESSION.test(value);
33
34
/**
35
* @param {import('@types/mdast').Text} text
0 commit comments