@@ -43,7 +43,9 @@ export default (
4343import webpack from ' webpack' ;
4444import { Options } from ' markdown-react-code-preview-loader' ;
4545/**
46- * `mdCodeModulesLoader` method for adding `markdown-react-code-preview-loader` to webpack config.
46+ * `mdCodeModulesLoader` method for adding
47+ * `markdown-react-code-preview-loader` to webpack config.
48+ *
4749 * @param {webpack.Configuration} config webpack config
4850 * @param {string[]} lang Parsing language
4951 * @param {Options} option Loader Options
@@ -66,7 +68,11 @@ import webpack, { Configuration } from 'webpack';
6668import scopePluginOptions from ' @kkt/scope-plugin-options' ;
6769import { LoaderConfOptions } from ' kkt' ;
6870
69- export default (conf : Configuration , env : ' development' | ' production' , options : LoaderConfOptions ) => {
71+ export default (
72+ conf : Configuration ,
73+ env : ' development' | ' production' ,
74+ options : LoaderConfOptions
75+ ) => {
7076 // ....
7177 config .module .rules .forEach ((ruleItem ) => {
7278 if (typeof ruleItem === ' object' ) {
@@ -121,7 +127,8 @@ import mdObj from 'markdown-react-code-preview-loader/README.md';
121127
122128// `README.md` raw string text
123129mdObj .source
124- // The component index object, the React component converted from the markdown indexed example.
130+ // The component index object,
131+ // the React component converted from the markdown indexed example.
125132// (need to configure meta)
126133mdObj .components
127134// The component source code index object, the sample source code indexed from markdown.
@@ -203,9 +210,13 @@ import { getURLParameters } from 'markdown-react-code-preview-loader';
203210
204211getURLParameters (' name=Adam&surname=Smith' ) // => { name: 'Adam', surname: "Smith" }
205212getURLParameters (' mdx:preview:demo12' ) // => { }
206- getURLParameters (' mdx:preview:demo12&name=Adam&surname=Smith' ) // => { name: 'Adam', surname: "Smith" }
207- getURLParameters (' mdx:preview:demo12&code=true&boreder=0' ) // => { code: 'true', boreder: "0" }
208- getURLParameters (' mdx:preview:demo12?code=true&boreder=0' ) // => { code: 'true', boreder: "0" }
213+
214+ getURLParameters (' mdx:preview:demo12&name=Adam&surname=Smith' )
215+ // => { name: 'Adam', surname: "Smith" }
216+ getURLParameters (' mdx:preview:demo12&code=true&boreder=0' )
217+ // => { code: 'true', boreder: "0" }
218+ getURLParameters (' mdx:preview:demo12?code=true&boreder=0' )
219+ // => { code: 'true', boreder: "0" }
209220```
210221
211222``` markdown
@@ -238,7 +249,10 @@ export default Demo
238249## getCodeBlock
239250
240251``` ts
241- const getCodeBlock: (child : MarkdownParseData [' children' ], opts ? : Options ) => CodeBlockData [' data' ];
252+ const getCodeBlock: (
253+ child : MarkdownParseData [' children' ],
254+ opts ? : Options
255+ ) => CodeBlockData [' data' ];
242256```
243257
244258## Configure meta ID
0 commit comments