Skip to content
/ unwiki Public
forked from fitnr/unwiki

Python module to remove wiki markup text.

License

Notifications You must be signed in to change notification settings

lab156/unwiki

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unwiki

Python module to remove wiki markup text.

Unwiki has two methods: unwiki.load and unwiki.loads

>>> import unwiki

>>> unwiki.loads("[[Wiki Link]]")
"Wiki Link"

>>> with open('wiki.txt') as f:
... result = unwiki.load(f)

Use the compress_spaces option to remove extra spaces that may sneak in:

>>> unwiki.loads("[[Wiki Link]] {{template}} more")
"Wiki Link  more"

>>> unwiki.loads("[[Wiki Link]] {{template}} more", compress_spaces=True)
"Wiki Link more"

License

GNU Public License. See LICENSE.txt for more.

Inspired by dewiki by Dirk Dierickx.

About

Python module to remove wiki markup text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.8%
  • Makefile 8.2%