micromark-extension-mdx-jsx
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -5,2 +5,3 @@ 'use strict' | ||
var id = require('estree-util-is-identifier-name') | ||
var markdownLineEnding = require('micromark/dist/character/markdown-line-ending') | ||
@@ -13,3 +14,2 @@ var markdownLineEndingOrSpace = require('micromark/dist/character/markdown-line-ending-or-space') | ||
var VMessage = require('vfile-message') | ||
var id = require('./util-identifier') | ||
@@ -92,3 +92,6 @@ function factoryTag( | ||
'before name', | ||
'a character that can start a name, such as a letter, `$`, or `_`' | ||
'a character that can start a name, such as a letter, `$`, or `_`' + | ||
(code === 33 /* `!` */ | ||
? ' (note: to create a comment in MDX, use `{/* text */}`)' | ||
: '') | ||
) | ||
@@ -145,3 +148,6 @@ } | ||
'in name', | ||
'a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag' | ||
'a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag' + | ||
(code === 64 /* `@` */ | ||
? ' (note: to create a link in MDX, use `[text](url)`)' | ||
: '') | ||
) | ||
@@ -229,3 +235,6 @@ } | ||
'in member name', | ||
'a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag' | ||
'a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag' + | ||
(code === 64 /* `@` */ | ||
? ' (note: to create a link in MDX, use `[text](url)`)' | ||
: '') | ||
) | ||
@@ -276,3 +285,6 @@ } | ||
'before local name', | ||
'a character that can start a name, such as a letter, `$`, or `_`' | ||
'a character that can start a name, such as a letter, `$`, or `_`' + | ||
(code === 43 /* `+` */ || (code > 46 && code < 58) /* `/` - `9` */ | ||
? ' (note: to create a link in MDX, use `[text](url)`)' | ||
: '') | ||
) | ||
@@ -563,3 +575,6 @@ } | ||
'before attribute value', | ||
'a character that can start an attribute value, such as `"`, `\'`, or `{`' | ||
'a character that can start an attribute value, such as `"`, `\'`, or `{`' + | ||
(code === 60 /* `<` */ | ||
? ' (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)' | ||
: '') | ||
) | ||
@@ -566,0 +581,0 @@ } |
{ | ||
"name": "micromark-extension-mdx-jsx", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "micromark extension to support MDX or MDX.js JSX", | ||
@@ -34,2 +34,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"estree-util-is-identifier-name": "^1.0.0", | ||
"micromark": "~2.11.0", | ||
@@ -40,3 +41,2 @@ "micromark-extension-mdx-expression": "^0.3.0", | ||
"devDependencies": { | ||
"@unicode/unicode-13.0.0": "^1.0.0", | ||
"acorn": "^8.0.0", | ||
@@ -47,3 +47,2 @@ "acorn-jsx": "^5.0.0", | ||
"prettier": "^2.0.0", | ||
"regenerate": "^1.0.0", | ||
"remark-cli": "^9.0.0", | ||
@@ -55,7 +54,6 @@ "remark-preset-wooorm": "^8.0.0", | ||
"scripts": { | ||
"generate": "node script/generate-identifier-regex", | ||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", | ||
"test-api": "node test", | ||
"test-coverage": "nyc --reporter lcov tape test.js", | ||
"test": "npm run generate && npm run format && npm run test-coverage" | ||
"test": "npm run format && npm run test-coverage" | ||
}, | ||
@@ -80,6 +78,3 @@ "nyc": { | ||
"rules": { | ||
"max-params": "off", | ||
"unicorn/escape-case": "off", | ||
"unicorn/no-fn-reference-in-iterator": "off", | ||
"unicorn/no-hex-escape": "off" | ||
"max-params": "off" | ||
} | ||
@@ -86,0 +81,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
42323
4
8
754
+ Addedestree-util-is-identifier-name@1.1.0(transitive)