This commit is contained in:
2024-09-30 08:04:21 -06:00
parent b7e2e4fa91
commit 2dab8bcd6e
3 changed files with 15 additions and 3 deletions

View File

@@ -46,4 +46,17 @@ better error handling when files are unparseable
new settings new settings
- default submission types - default submission types
- default file types - default file types
- default lockAt offset - default lockAt offset
websocket server to watch file system for changes, notify frontend it should invalidate cache
lectures
- create 1 lecture for a given day
- have a way of running a lecture from an unauthenticated computer? maybe just view lecture notes?
tighter integration with git
- regularly make git commits
- handle merging?
- maybe a different storage backend?
- user motivated restore?

View File

@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest"; import { describe, expect, it } from "vitest";
import { htmlIsCloseEnough, removeHtmlDetails } from "./htmlIsCloseEnough"; import { removeHtmlDetails } from "./htmlIsCloseEnough";
describe("html can be close enough", () => { describe("html can be close enough", () => {
it("scenario 1", () => { it("scenario 1", () => {

View File

@@ -18,7 +18,6 @@ export const removeHtmlDetails = (html: string) => {
.replaceAll(/\\"/g, '"') .replaceAll(/\\"/g, '"')
.replaceAll(/\s/g, "") .replaceAll(/\s/g, "")
.replaceAll(/<hr\s*\/?>/g, "<hr>") .replaceAll(/<hr\s*\/?>/g, "<hr>")
.replaceAll(/<hr\s*\/?>/g, "<hr>")
.replaceAll(/<br\s*\/?>/g, "<br>") .replaceAll(/<br\s*\/?>/g, "<br>")
.replaceAll(/&gt;/g, "") .replaceAll(/&gt;/g, "")
.replaceAll(/&lt;/g, "") .replaceAll(/&lt;/g, "")