ttcmd: adds hr element
help pages: adds a way to extract the table of contents to the parent, smoothes out the rough loading on help pages
This commit is contained in:
5
actions/readMD.ts
Normal file
5
actions/readMD.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
"use server";
|
||||
|
||||
import { readFile } from "fs/promises";
|
||||
|
||||
export const readMD = async (path: string) => await readFile(path, "utf-8");
|
@@ -1,5 +0,0 @@
|
||||
"use server";
|
||||
|
||||
import { readFile } from "fs/promises";
|
||||
|
||||
export const readMD = async () => await readFile("./test.md", "utf-8");
|
Reference in New Issue
Block a user