'Create an instant of an inline pattern.
Keyword arguments:
* pattern: A regular expression that matches a pattern'

def __init__(self, pattern, markdown_instance=None):

    self.pattern = pattern
    self.compiled_re = re.compile(('^(.*?)%s(.*?)$' % pattern), re.DOTALL)
    self.safe_mode = False
    if markdown_instance:
        self.markdown = markdown_instance
