From a5b28f29dd683191433a70b2c3c21e06de265717 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 23 Mar 2022 17:02:43 +0430 Subject: wip --- spring-front/src/components/.Left.js.swp | Bin 0 -> 12288 bytes spring-front/src/components/.Right.js.swp | Bin 0 -> 12288 bytes spring-front/src/components/Left.js | 34 ++++++++++++++++++++++++++++++ spring-front/src/components/Right.js | 6 ++++++ 4 files changed, 40 insertions(+) create mode 100644 spring-front/src/components/.Left.js.swp create mode 100644 spring-front/src/components/.Right.js.swp create mode 100644 spring-front/src/components/Left.js create mode 100644 spring-front/src/components/Right.js (limited to 'spring-front/src/components') diff --git a/spring-front/src/components/.Left.js.swp b/spring-front/src/components/.Left.js.swp new file mode 100644 index 0000000..64301a2 Binary files /dev/null and b/spring-front/src/components/.Left.js.swp differ diff --git a/spring-front/src/components/.Right.js.swp b/spring-front/src/components/.Right.js.swp new file mode 100644 index 0000000..8f6b495 Binary files /dev/null and b/spring-front/src/components/.Right.js.swp differ diff --git a/spring-front/src/components/Left.js b/spring-front/src/components/Left.js new file mode 100644 index 0000000..7abeed4 --- /dev/null +++ b/spring-front/src/components/Left.js @@ -0,0 +1,34 @@ +import React from "react"; +import hljs from "highlight.js/lib/core"; +import markdown from "highlight.js/lib/languages/markdown"; +import "highlight.js/styles/devibeans.css"; +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 ; +} + +function CreatePreCode() { + return ( + + ); +} + +export default function Left() { + return ( +
+ + +
+ ); +} diff --git a/spring-front/src/components/Right.js b/spring-front/src/components/Right.js new file mode 100644 index 0000000..7206ae9 --- /dev/null +++ b/spring-front/src/components/Right.js @@ -0,0 +1,6 @@ +import React from "react"; +import "../index.css"; + +export default function Right() { + return
Parsed Markdown goes here!!!
; +} -- cgit v1.2.3