Using mwn wikitext functions

This commit is contained in:
Lukas Wölfer
2025-05-06 11:03:33 +02:00
parent 5cb3df617a
commit 5bcc6192a9
2 changed files with 18 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import { Mwn } from 'npm:mwn'
import { Mwn, MwnWikitext } from 'npm:mwn'
import process from "node:process";
import { parseSummary } from "./parse.ts";
@@ -52,7 +52,8 @@ async function main() {
throw new Error("Latest revision has no content")
}
console.log(content)
parseSummary(content, relevantFiles[0])
console.dir(bot.Wikitext.parseSections(content)[2])
// parseSummary(content, relevantFiles[0])
} catch (error) {
console.error('Error:', error);
} finally {