Skip to content

Commit

Permalink
Merge pull request #5 from lovelyCARDINAL/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish authored Jul 12, 2023
2 parents 9b2121b + 5904376 commit c02bb43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ export class MediaWikiApi {
return result
}

async parseWikitext(wikitext: string, page?: string): Promise<string> {
async parseWikitext(wikitext: string, title?: string): Promise<string> {
const { data } = await this.post({
action: 'parse',
page,
title,
text: wikitext,
})
return data.parse.text
Expand Down

0 comments on commit c02bb43

Please sign in to comment.