{/*
*/}
{...items.map((item: string, i: number) => (
{item}
@@ -53,12 +63,14 @@ function weird_slices
(arr: T[]): T[][] {
return arr.map(item => [...arr.filter(t => t != item), item]);
}
-const MultiWheel: Component = ({ items, type }, _) => (
+const MultiWheel: Component = ({ items, calc_width, shl, type }, _) => (
- {...weird_slices(items).map((items, n) => (
+ {...weird_slices(items).map((sliced_items, n) => (
@@ -72,11 +84,16 @@ const MultiWheel: Component = ({ items, type }, _) => (
// it would be possible to have it so the final text is actually properyly selectable maybe but eh
const Take: Component = ({ subjects, objects, adjectives }, _) => (
-
{" "}
+
{" "}
who eat
{" "}
-
{" "}
+
{" "}
are
{" "}
-
+
);
diff --git a/html/html.ts b/html/html.ts
index 533fc8b..de97f2c 100644
--- a/html/html.ts
+++ b/html/html.ts
@@ -85,7 +85,8 @@ function indent(str: string, amount = 4, char = " "): string {
}
// incomplete, obviously
-const NON_SELF_CLOSING = ["div", "p", "a"];
+// i hate html
+const NON_SELF_CLOSING = ["div", "p", "a", "summary"];
function render_elem(
{ tag, attributes, children }: NonText,