Skip to content
forked from fitnr/unwiki

Python module to remove wiki markup text.

License

Notifications You must be signed in to change notification settings

abeusher/unwiki

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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 84.7%
  • Makefile 15.3%