File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11<p align =" center " >
22 <a href =" https://github.com/uiwjs/react-markdown-editor " >
3- <img alt="react-markdown-editor logo" src="./website/logo.svg?sanitize=true">
3+ <img alt="React Markdown Editor logo" src="./website/logo.svg?sanitize=true">
44 </a >
55</p >
66
2323</p >
2424
2525
26- [ Migrate from @uiw/react-markdown-editor 4.x to 5.x.] ( https://github.com/uiwjs/react-markdown-editor/releases/tag/v5.0.0 )
26+ > Migrate from @uiw/react-markdown-editor [ 4.x to 5.x.] ( https://github.com/uiwjs/react-markdown-editor/releases/tag/v5.0.0 )
2727
2828## Install
2929
Original file line number Diff line number Diff line change 11.editor {
2- width : 980px ;
2+ max- width : 980px ;
33 padding : 0 10px ;
44 margin : 0 auto 0 auto ;
55}
66
77.doc {
8- width : 960 px ;
8+ max- width : 980 px ;
99 padding : 20px 10px 25px 10px ;
1010 border-radius : 5px ;
1111 margin : 30px auto 0 auto ;
1414.logo {
1515 svg {
1616 width : auto ;
17- height : 256px ;
17+ width : -webkit-fill-available ;
18+ max-height : 256px ;
1819 margin : 0 auto ;
1920 display : block ;
2021 fill : var (--color-theme-text );
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default function App() {
2323 </ div >
2424 < div className = { styles . editor } >
2525 < MarkdownEditor visible = { visible } height = "500px" value = { mdstr } />
26- < div style = { { marginTop : 10 } } >
26+ < div style = { { marginTop : 10 , display : 'flex' , gap : '10px' } } >
2727 < button
2828 onClick = { ( ) => {
2929 count += 1 ;
@@ -33,6 +33,7 @@ export default function App() {
3333 Modify Markdown
3434 </ button >
3535 < button onClick = { ( ) => setVisible ( ! visible ) } > { visible ? 'Show' : 'Hide' } </ button >
36+ < span > v{ VERSION } </ span >
3637 </ div >
3738 </ div >
3839 < MarkdownPreview source = { DocumentStrSource } className = { styles . doc } />
Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ declare module '*.md' {
99 const src : any ;
1010 export default src ;
1111}
12+
13+ declare var VERSION : string ;
You can’t perform that action at this time.
0 commit comments