Using mwn wikitext functions
This commit is contained in:
5
main.ts
5
main.ts
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user