Skip to content

Commit

Permalink
fix:pull master
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed Oct 15, 2021
2 parents dafa729 + 5ff98f5 commit 05339d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"license": "MIT",
"dependencies": {
"@rematch/core": "2.1.0",
"@rematch/loading": "2.1.0",
"@rematch/core": "2.1.1",
"@rematch/loading": "2.1.1",
"@uiw/react-code-preview": "2.1.4",
"@uiw/react-markdown-preview": "3.4.0",
"@uiw/react-native": "2.9.0",
Expand Down
4 changes: 4 additions & 0 deletions website/src/component/Markdown/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@
.rehyp {
overflow: initial !important;
}

.markdown pre[data-type='rehyp'] {
overflow-x: initial !important;
}
3 changes: 1 addition & 2 deletions website/src/component/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { Component, Fragment } from 'react';
import MarkdownPreview from '@uiw/react-markdown-preview';
import CodePreview from '@uiw/react-code-preview';
import rehypeRewrite from 'rehype-rewrite';
import rehypeAttr from 'rehype-attr';
import { Element } from 'hast';
import Contributors from '../Contributors';
import Footer from '../Footer';
Expand Down Expand Up @@ -88,8 +87,8 @@ export default class Markdown extends Component<MarkdownProps, MarkdownState> {
<div className={styles.warpper} style={style}>
<MarkdownPreview
source={this.state.markdown}
className={styles.markdown}
rehypePlugins={[
[rehypeAttr, { properties: 'attr' }],
[
rehypeRewrite,
{
Expand Down

0 comments on commit 05339d9

Please sign in to comment.