add project page for lila and render djot pages
This commit is contained in:
parent
47473a53b5
commit
910038a5e3
5 changed files with 62 additions and 14 deletions
2
_djot.ts
2
_djot.ts
|
|
@ -14,7 +14,7 @@ export function djotRender(content: string): string {
|
|||
return djot.renderHTML(djot.parse(content));
|
||||
}
|
||||
|
||||
export default async function djotLoader(path: string | URL) {
|
||||
export async function djotLoader(path: string | URL) {
|
||||
const content = await Deno.readTextFile(path);
|
||||
|
||||
const ast = djot.parse(content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue