Skip to content

Commit

Permalink
getMarkdownContent
Browse files Browse the repository at this point in the history
  • Loading branch information
tacheraSasi committed Nov 30, 2024
1 parent ce0a65d commit de1fca0
Show file tree
Hide file tree
Showing 3 changed files with 1,614 additions and 13 deletions.
12 changes: 12 additions & 0 deletions website/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}

export async function getMarkdownContent(file:string) {
const res = await fetch(
`https://raw.githubusercontent.com/ekilie/vint-lang/main/${file}`
);
if (!res.ok) {
throw new Error(`Failed to fetch Markdown: ${res.statusText}`);
}
const markdown = await res.text();
return markdown;
}


export const features = [
{
name: 'Simple Syntax',
Expand Down
Loading

0 comments on commit de1fca0

Please sign in to comment.