feat: integrate typesense
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { parseDocument, renderMarkdown } from "@lib/documents.ts";
|
||||
import { parseDocument } from "@lib/documents.ts";
|
||||
import { parse } from "yaml";
|
||||
import { createCrud } from "@lib/crud.ts";
|
||||
import { stringify } from "https://deno.land/std@0.197.0/yaml/stringify.ts";
|
||||
import { stringify } from "$std/yaml/stringify.ts";
|
||||
import { extractHashTags, formatDate } from "@lib/string.ts";
|
||||
import { fixRenderedMarkdown } from "@lib/helpers.ts";
|
||||
|
||||
@@ -92,7 +92,7 @@ function parseArticle(original: string, id: string): Article {
|
||||
id,
|
||||
name,
|
||||
tags,
|
||||
content: renderMarkdown(content),
|
||||
content,
|
||||
meta,
|
||||
};
|
||||
}
|
||||
|
@@ -90,7 +90,7 @@ export function parseMovie(original: string, id: string): Movie {
|
||||
id,
|
||||
name,
|
||||
tags,
|
||||
description: renderMarkdown(description),
|
||||
description,
|
||||
meta,
|
||||
};
|
||||
}
|
||||
|
@@ -178,9 +178,9 @@ export function parseRecipe(original: string, id: string): Recipe {
|
||||
meta,
|
||||
name,
|
||||
tags,
|
||||
description: description ? renderMarkdown(description) : "",
|
||||
description,
|
||||
ingredients,
|
||||
preparation: preparation ? renderMarkdown(preparation) : "",
|
||||
preparation,
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user