Skip to content

Commit

Permalink
Merge pull request #283 from xxyzz/doc
Browse files Browse the repository at this point in the history
Update example usage code
  • Loading branch information
xxyzz committed May 11, 2024
2 parents edd475d + 60ae2cb commit 304864d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -101,6 +101,7 @@ from wikitextprocessor import Wtp, WikiNode, NodeKind, Page
from wikitextprocessor.dumpparser import process_dump

def page_handler(wtp: Wtp, page: Page) -> Any:
wtp.start_page(page.title)
# process parse tree
tree = wtp.parse(page.body)
# or get expanded plain text
Expand Down

0 comments on commit 304864d

Please sign in to comment.