# Path: subrosa/markdown_ext.py
# class Markdown(object):
# 
#     """
# 
#     Wrapper class for Markdown object
# 
#     Example usage:
#     md = Markdown(app = app,
#                         auto_escape = False,
#                         extensions = ['footnotes'],
#                         safe_mode = True,
#                         output_format = 'html4')
#     """
# 
#     def __init__(self, app=None, auto_escape=False, **markdown_options):
# 
#         self._instance = markdown.Markdown(**markdown_options)
# 
#     def __call__(self, stream):
#         return Markup(self._instance.convert(stream))
# 
#     def _build_filter(self, auto_escape):
#         @evalcontextfilter
#         def markdown_filter(eval_ctx, stream):
#             _filter = self
#             if auto_escape and eval_ctx.autoescape:
#                 return Markup(_filter(escape(stream)))
#             else:
#                 return Markup(_filter(stream))
#         return markdown_filter


import sys
import unittest
from subrosa.markdown_ext import Markdown
from __future__ import absolute_import
from __future__ import print_function


sys.path.append("..")



md = Markdown()




class TestMarkdownWrapper(unittest.TestCase):



    def testBasicMarkdownFunctions(self):


# Path: subrosa/markdown_ext.py
# class Markdown(object):
# 
#     """
# 
#     Wrapper class for Markdown object
# 
#     Example usage:
#     md = Markdown(app = app,
#                         auto_escape = False,
#                         extensions = ['footnotes'],
#                         safe_mode = True,
#                         output_format = 'html4')
#     """
# 
#     def __init__(self, app=None, auto_escape=False, **markdown_options):
# 
#         self._instance = markdown.Markdown(**markdown_options)
# 
#     def __call__(self, stream):
#         return Markup(self._instance.convert(stream))
# 
#     def _build_filter(self, auto_escape):
#         @evalcontextfilter
#         def markdown_filter(eval_ctx, stream):
#             _filter = self
#             if auto_escape and eval_ctx.autoescape:
#                 return Markup(_filter(escape(stream)))
#             else:
#                 return Markup(_filter(stream))
#         return markdown_filter


# Path: subrosa/tests/test_markdown_extensions.py
import sys
import unittest
from subrosa.markdown_ext import Markdown

from __future__ import absolute_import
from __future__ import print_function


sys.path.append("..")



md = Markdown()




class TestMarkdownWrapper(unittest.TestCase):



    def testBasicMarkdownFunctions(self):


        md = Markdown()