@@ -2,13 +2,13 @@ import React, { useState, useEffect } from 'react'
22import { Button , Fab , Switch , TextField } from '@mui/material'
33import { Container , Paper } from '@mui/material'
44import { Controller , useForm } from 'react-hook-form'
5- import { highlight , languages } from 'prismjs'
5+ // import { highlight, languages } from 'prismjs'
66
77import 'twin.macro'
8- import 'prismjs/components/prism-clike'
9- import 'prismjs/components/prism-javascript'
10- import 'prismjs/components/prism-markup'
11- import 'prismjs/components/prism-css'
8+ // import 'prismjs/components/prism-clike'
9+ // import 'prismjs/components/prism-javascript'
10+ // import 'prismjs/components/prism-markup'
11+ // import 'prismjs/components/prism-css'
1212
1313import AddIcon from '@mui/icons-material/Add'
1414import Editor from 'react-simple-code-editor'
@@ -81,10 +81,12 @@ function Publish(props: RouteComponentProps) {
8181 </ div >
8282 < div tw = "my-4 min-w-[800px] max-w-[800px]" >
8383 < Paper variant = "outlined" >
84+ { /* TODO replace editor with multiline textarea input */ }
8485 < Editor
8586 value = { text }
8687 onValueChange = { ( text ) => setText ( text ) }
87- highlight = { ( text ) => highlight ( text , languages . markup , 'markup' ) }
88+ highlight = { ( text ) => text }
89+ // highlight={(text) => highlight(text, languages.markup, 'markup')}
8890 padding = { 14 }
8991 tabSize = { 4 }
9092 insertSpaces = { true }
0 commit comments