Explorar el Código

feat: render task list

node hace 6 años
padre
commit
630c793825
Se han modificado 3 ficheros con 10 adiciones y 5 borrados
  1. 2
    2
      src/App.js
  2. 2
    2
      src/MarkdownEditor/index.css
  3. 6
    1
      src/MarkdownEditor/index.js

+ 2
- 2
src/App.js Ver fichero

13
     faListOl,
13
     faListOl,
14
     faTasks,
14
     faTasks,
15
  } from '@fortawesome/free-solid-svg-icons'
15
  } from '@fortawesome/free-solid-svg-icons'
16
-import RichEditor from './RichEditor';
16
+// import RichEditor from './RichEditor';
17
 import MarkdownEditor from './MarkdownEditor';
17
 import MarkdownEditor from './MarkdownEditor';
18
 import './App.css'
18
 import './App.css'
19
 
19
 
34
   render() {
34
   render() {
35
     return (
35
     return (
36
       <div className="main">
36
       <div className="main">
37
-        <RichEditor />
37
+        {/* <RichEditor /> */}
38
         <hr></hr>
38
         <hr></hr>
39
         <MarkdownEditor />
39
         <MarkdownEditor />
40
       </div>
40
       </div>

+ 2
- 2
src/MarkdownEditor/index.css Ver fichero

1
-.container {
1
+/* .container {
2
   width: 100%;
2
   width: 100%;
3
   height: 300px;
3
   height: 300px;
4
-}
4
+} */

+ 6
- 1
src/MarkdownEditor/index.js Ver fichero

31
         this.state = {
31
         this.state = {
32
             mdeState: null,
32
             mdeState: null,
33
         };
33
         };
34
-        this.converter = new Showdown.Converter({tables: true, simplifiedAutoLink: true});
34
+        this.converter = new Showdown.Converter({
35
+            tables: true,
36
+            simplifiedAutoLink: true,
37
+            strikethrough: true,
38
+            tasklists: true
39
+        });
35
     }
40
     }
36
 
41
 
37
     handleValueChange = (mdeState) => {
42
     handleValueChange = (mdeState) => {