chore: markdown eslint error (#40124)

This commit is contained in:
lijianan 2023-01-10 11:44:06 +08:00 committed by GitHub
parent 26c3c326ad
commit 0f64e1538e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -104,7 +104,8 @@ We added a `createFromIconfontCN` function to help developer use their own icons
> This method is specified for [iconfont.cn](http://iconfont.cn/). > This method is specified for [iconfont.cn](http://iconfont.cn/).
```js ```jsx
import React from 'react';
import { createFromIconfontCN } from '@ant-design/icons'; import { createFromIconfontCN } from '@ant-design/icons';
const MyIcon = createFromIconfontCN({ const MyIcon = createFromIconfontCN({
@ -133,7 +134,8 @@ You can import SVG icon as a react component by using `webpack` and [`@svgr/webp
```js ```js
// webpack.config.js // webpack.config.js
{ module.exports = {
// ... other config
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
use: [ use: [
{ {
@ -147,7 +149,7 @@ You can import SVG icon as a react component by using `webpack` and [`@svgr/webp
}, },
}, },
], ],
} };
``` ```
```jsx ```jsx

View File

@ -99,7 +99,8 @@ getTwoToneColor(); // #eb2f96
`3.9.0` 之后,我们提供了一个 `createFromIconfontCN` 方法,方便开发者调用在 [iconfont.cn](http://iconfont.cn/) 上自行管理的图标。 `3.9.0` 之后,我们提供了一个 `createFromIconfontCN` 方法,方便开发者调用在 [iconfont.cn](http://iconfont.cn/) 上自行管理的图标。
```js ```jsx
import React from 'react';
import { createFromIconfontCN } from '@ant-design/icons'; import { createFromIconfontCN } from '@ant-design/icons';
const MyIcon = createFromIconfontCN({ const MyIcon = createFromIconfontCN({
@ -128,7 +129,8 @@ options 的配置项如下:
```js ```js
// webpack.config.js // webpack.config.js
{ module.exports = {
// ... other config
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
use: [ use: [
{ {
@ -142,7 +144,7 @@ options 的配置项如下:
}, },
}, },
], ],
} };
``` ```
```jsx ```jsx