@mui/internal-markdown 2.0.6 → 2.0.8
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 +2 -2
- package/prepareMarkdown.mjs +1 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-markdown",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
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,7 +21,7 @@
|
|
|
21
21
|
"directory": "packages/markdown"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/runtime": "^7.
|
|
24
|
+
"@babel/runtime": "^7.28.2",
|
|
25
25
|
"lodash": "^4.17.21",
|
|
26
26
|
"marked": "^15.0.12",
|
|
27
27
|
"prismjs": "^1.30.0"
|
package/prepareMarkdown.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-irregular-whitespace */
|
|
2
1
|
import fs from 'fs';
|
|
3
2
|
import path from 'path';
|
|
4
3
|
import kebabCase from 'lodash/kebabCase.js';
|
|
@@ -12,7 +11,7 @@ import {
|
|
|
12
11
|
getTitle,
|
|
13
12
|
} from './parseMarkdown.mjs';
|
|
14
13
|
|
|
15
|
-
const BaseUIReexportedComponents = [
|
|
14
|
+
const BaseUIReexportedComponents = [];
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* @param {string} productId
|
|
@@ -113,15 +112,6 @@ function prepareMarkdown(config) {
|
|
|
113
112
|
|
|
114
113
|
const contents = getContents(markdown);
|
|
115
114
|
|
|
116
|
-
if (headers.unstyled) {
|
|
117
|
-
contents.push(`
|
|
118
|
-
## Unstyled
|
|
119
|
-
|
|
120
|
-
Use the [Base UI ${markdownH1}](${headers.unstyled}) for complete ownership of the component's design, with no Material UI or Joy UI styles to override.
|
|
121
|
-
This unstyled version of the component is the ideal choice for heavy customization with a smaller bundle size.
|
|
122
|
-
`);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
115
|
if (headers.components.length > 0 && headers.productId !== 'base-ui') {
|
|
126
116
|
contents.push(`
|
|
127
117
|
## API
|