@mui/internal-markdown 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/parseMarkdown.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-markdown",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "MUI markdown parser. This is an internal package not meant for general use.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"directory": "packages/markdown"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@babel/runtime": "^7.25.
|
|
19
|
+
"@babel/runtime": "^7.25.7",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
|
-
"marked": "^
|
|
21
|
+
"marked": "^14.1.2",
|
|
22
22
|
"prismjs": "^1.29.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
package/parseMarkdown.js
CHANGED
|
@@ -369,8 +369,8 @@ function createRender(context) {
|
|
|
369
369
|
headingHtml.includes('<a ')
|
|
370
370
|
? [
|
|
371
371
|
// Avoid breaking the anchor link button
|
|
372
|
-
`<h${level} id="${hash}"
|
|
373
|
-
`<a href="#${hash}" class="title-link-to-anchor"><span class="anchor-icon"><svg><use xlink:href="#anchor-link-icon" /></svg></span></a>`,
|
|
372
|
+
`<h${level} id="${hash}">${headingHtml}`,
|
|
373
|
+
`<a href="#${hash}" class="title-link-to-anchor" aria-labelledby="${hash}"><span class="anchor-icon"><svg><use xlink:href="#anchor-link-icon" /></svg></span></a>`,
|
|
374
374
|
].join('')
|
|
375
375
|
: `<h${level} id="${hash}"><a href="#${hash}" class="title-link-to-anchor">${headingHtml}<span class="anchor-icon"><svg><use xlink:href="#anchor-link-icon" /></svg></span></a>`,
|
|
376
376
|
`<button title="Post a comment" class="comment-link" data-feedback-hash="${hash}">`,
|