Add code highlighting
All checks were successful
CI / Test and lint (push) Successful in 19s

This commit is contained in:
2025-04-26 18:27:32 +04:00
parent b907cc2f65
commit 9305e9f718
8 changed files with 308 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ import { NostrEvent as NEvent } from "@nostrify/nostrify";
import { replaceNostrUris } from "../nostr/links.ts";
import config from "../config.ts";
for (const language of config.prism.extraLanguages) {
await import(`npm:prismjs@1.29.0/components/prism-${language}.js`);
}
export default class Article {
event: NEvent;