diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-23 12:32:43 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-23 12:32:43 +0000 |
commit | a5b28f29dd683191433a70b2c3c21e06de265717 (patch) | |
tree | 714dbfd5caf284df4373ba9a1503e9e5ba83292e /spring-front/src/index.js | |
parent | wip (diff) | |
download | mdrtl-a5b28f29dd683191433a70b2c3c21e06de265717.tar.gz mdrtl-a5b28f29dd683191433a70b2c3c21e06de265717.zip |
wip
Diffstat (limited to '')
-rw-r--r-- | spring-front/src/index.js | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/spring-front/src/index.js b/spring-front/src/index.js index 2b3e29d..1dba149 100644 --- a/spring-front/src/index.js +++ b/spring-front/src/index.js @@ -1,38 +1,6 @@ import React from "react"; import ReactDOM from "react-dom"; -import hljs from "highlight.js/lib/core"; -import markdown from "highlight.js/lib/languages/markdown"; -import "highlight.js/styles/devibeans.css"; +import App from "./App.js"; import "./index.css"; -hljs.registerLanguage("markdown", markdown); - -function update(text) { - let result_element = document.querySelector("#highlight-content"); - result_element.innerText = text; - return hljs.highlight(text, { language: "markdown" }).value; -} - -function CreateTextArea() { - return <textarea name="editor" className="editor" id="editor"></textarea>; -} - -function CreatePreCode() { - return ( - <pre id="highlight" aria-hidden="true"> - <code className="language-markdown" id="highlight-content"></code> - </pre> - ); -} - -function CreateRoot() { - return ( - <div> - <p>RTLMD ftw bebe!!!</p> - </div> - ); -} - -ReactDOM.render(<CreatePreCode />, document.getElementById("root2")); -ReactDOM.render(<CreateTextArea />, document.getElementById("root2")); -ReactDOM.render(<CreateRoot />, document.getElementById("root")); +ReactDOM.render(<App />, document.getElementById("root")); |