got to a stable point again. next up is comming up with a decent API for modifications

This commit is contained in:
Chris Kruining 2025-02-25 16:21:21 +11:00
parent 4fb7405466
commit fc22ce6027
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
19 changed files with 498 additions and 375 deletions

View file

@ -2,6 +2,7 @@ import { createSignal } from "solid-js";
import { debounce } from "@solid-primitives/scheduled";
import { Textarea } from "~/components/textarea";
import css from './formatter.module.css';
import { Editor } from "~/features/editor";
const tempVal = `
# Header
@ -37,7 +38,7 @@ export default function Formatter(props: {}) {
}, 300);
return <div class={css.root}>
<textarea oninput={onInput}>{value()}</textarea>
<Textarea class={css.textarea} value={value()} oninput={setValue} lang="en-GB" />
<textarea oninput={onInput} title="markdown">{value()}</textarea>
<Textarea class={css.textarea} title="html" value={value()} oninput={setValue} lang="en-GB" />
</div>;
}