Add qualifyLocalURLsInMarkdown()
This will handle special links in the description and similar fields
This commit is contained in:
parent
c38275e2f2
commit
cd67f6a5c5
20 changed files with 982 additions and 296 deletions
|
|
@ -217,10 +217,11 @@ const publishedContent = z.object({
|
|||
// Types
|
||||
|
||||
export type Lang = z.output<typeof lang>;
|
||||
export type Website = keyof z.input<typeof websiteLinks>;
|
||||
export type UserWebsite = keyof z.input<typeof websiteLinks>;
|
||||
export type GamePlatform = z.infer<typeof platform>;
|
||||
export type CopyrightedCharacters = z.infer<typeof copyrightedCharacters>;
|
||||
export type PublishedContent = z.infer<typeof publishedContent>;
|
||||
export type PostWebsite = keyof PublishedContent["posts"];
|
||||
|
||||
// Content collections
|
||||
|
||||
|
|
@ -305,7 +306,7 @@ const seriesCollection = defineCollection({
|
|||
schema: z.object({
|
||||
// Required parameters
|
||||
name: z.string(),
|
||||
url: z.string().regex(/^(\/[a-z0-9_-]+)+\/?$/, `"url" must be a local URL`),
|
||||
link: z.string().regex(/^(\/[a-z0-9_-]+)+\/?$/, `"link" must be a local URL`),
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue