'Build an extention that addes unsafe html to Stash in same_mode.'

def build_extension(self):

    class Unsafe(markdown.treeprocessors.Treeprocessor, ):
        def run(self, root):
            el = root.find(u'p')
            el.text = self.markdown.htmlStash.store(u'<script>print("evil")</script>', safe=False)
            return root
    class StoreUnsafeHtml(markdown.extensions.Extension, ):
        def extendMarkdown(self, md, md_globals):
            md.treeprocessors.add(u'unsafe', Unsafe(md), u'_end')
    return StoreUnsafeHtml()
