def __init__(self, title, markup, light=False, full_strip=True):
self.title = title<EOL>self.markup = markup<EOL>self.full_strip = full_strip<EOL>self.disambiguation = []<EOL>self.categories = []<EOL>self.links = []<EOL>self.paragraphs = []<EOL>self.images = []<EOL>self.tables = []<EOL>self.references = []<EOL>self.translations = {}<EOL>self.important = []<EOL>self.re = {<EOL>"<STR_LIT>" : r"<STR_LIT>",<EOL>"<STR_LIT>"       : r"<STR_LIT>",<EOL>"<STR_LIT>"           : r"<STR_LIT>",<EOL>"<STR_LIT:image>"          : re.compile(r"<STR_LIT>", re.I),<EOL>"<STR_LIT>"        : re.compile("<STR_LIT>", re.DOTALL),<EOL>"<STR_LIT>"          : re.compile(r"<STR_LIT>", re.DOTALL),<EOL>"<STR_LIT>"     : re.compile(r"<STR_LIT>", re.DOTALL),<EOL>"<STR_LIT>"      : re.compile(r"<STR_LIT>", re.DOTALL),<EOL>"<STR_LIT>"       : re.compile(r"<STR_LIT>", re.DOTALL),<EOL>"<STR_LIT:url>"            : r"<STR_LIT>",            <EOL>"<STR_LIT>"   : re.compile(r"<STR_LIT>", re.DOTALL),<EOL>"<STR_LIT>"    : r"<STR_LIT>",<EOL>"<STR_LIT>"           : r"<STR_LIT>",<EOL>"<STR_LIT>"        : re.compile(r"<STR_LIT>", re.DOTALL),       <EOL>}<EOL>self.ref = "<STR_LIT>"<EOL>self.parse(light)<EOL>
Wikipedia page parser.

        The expected markup is the stuff in Wikipedia's edit textarea.
        With light=True, it will onlt parse links to other articles (which is faster).
        With full_strip=False, it will preserve some HTML markup (links, bold, italic).