--- a/ForgeWiki/forgewiki/converters.py
+++ b/ForgeWiki/forgewiki/converters.py
@@ -1,6 +1,5 @@
#-*- python -*-
import html2text
-import bbcode
# https://github.com/zikzakmedia/python-mediawiki.git
from mediawiki import wiki2html
@@ -8,9 +7,6 @@
def mediawiki2markdown(source):
- p = bbcode.Parser(newline='\n', escape_html=False, replace_links=False,
- replace_cosmetic=False)
- cleanbb_text = p.format(source)
- wiki_content = wiki2html(cleanbb_text, True)
+ wiki_content = wiki2html(source, True)
markdown_text = html2text.html2text(wiki_content)
return markdown_text