Add qualifyLocalURLsInMarkdown()

This will handle special links in the description and similar fields
This commit is contained in:
Bad Manners 2024-08-12 21:38:16 -03:00
parent c38275e2f2
commit cd67f6a5c5
20 changed files with 982 additions and 296 deletions

View file

@ -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`),
}),
});

View file

@ -1,2 +1,2 @@
name: The Lost of the Marshes
url: /stories/the-lost-of-the-marshes
link: /stories/the-lost-of-the-marshes

View file

@ -35,6 +35,7 @@ tags:
- nudity
- masturbation
- plushie
- wardrobe malfunction
- commission
commissioner: dee-lumeni
copyrightedCharacters:

View file

@ -23,3 +23,5 @@ tags:
description: Scenarios where sexual consent is dubious.
- name: plushie
description: Scenarios with sexual action involving stuffed toys or plushie-like characters.
- name: wardrobe malfunction
description: Scenarios where a mishap happens with someone's clothes, such as accidentally revealing body parts and/or bursting open.