@mui/internal-markdown 2.0.13 → 2.0.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-markdown",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
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.mjs",
@@ -21,14 +21,14 @@
21
21
  "directory": "packages/markdown"
22
22
  },
23
23
  "dependencies": {
24
- "@babel/runtime": "^7.28.4",
25
- "es-toolkit": "^1.41.0",
24
+ "@babel/runtime": "^7.28.6",
25
+ "es-toolkit": "^1.44.0",
26
26
  "marked": "^17.0.1",
27
27
  "prismjs": "^1.30.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@types/chai": "^5.2.3",
31
- "chai": "^6.0.1"
30
+ "@types/chai": "5.2.3",
31
+ "chai": "6.2.2"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
package/textToHash.mjs CHANGED
@@ -20,7 +20,7 @@ export default function textToHash(text, unique = {}) {
20
20
  text
21
21
  .toLowerCase()
22
22
  .replace(/<\/?[^>]+(>|$)/g, '') // remove HTML
23
- .replace(/=&gt;|&lt;| \/&gt;|<code>|<\/code>|&#39;/g, '')
23
+ .replace(/&(?:#x[\da-fA-F]+|#\d+|\w+);|<\/?code>/g, '')
24
24
  .replace(/[!@#$%^&*()=_+[\]{}`~;:'"|,.<>/?\s]+/g, '-')
25
25
  .replace(
26
26
  /([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])\uFE0F?/g,
@@ -13,6 +13,9 @@ describe('textToHash', () => {
13
13
  'creategenerateclassname-options-class-name-generator',
14
14
  ],
15
15
  ['@mui/material/styles vs @mui/styles', 'mui-material-styles-vs-mui-styles'],
16
+ ['Inputs &amp; Labels', 'inputs-labels'],
17
+ ['Inputs &#x26; Labels', 'inputs-labels'],
18
+ ['Inputs &#38; Labels', 'inputs-labels'],
16
19
  ['Blog 📝', 'blog'],
17
20
  ];
18
21
  table.forEach((entry, index) => {