# Path: native_tags/decorators.py
# def tag(bucket, doc):
#     def wrapped(inner, **options):


from django.conf import settings
from django.template import TemplateSyntaxError
from native_tags.decorators import filter
from _markup import formatter
        from smartypants import smartyPants
"""
Filters for converting plain text to HTML and enhancing the
typographic appeal of text on the Web.

"""


def apply_markup(value, arg=None):
    """
    Applies text-to-HTML conversion.
    
    Takes an optional argument to specify the name of a filter to use.
    
    """
    if arg is not None:
        return formatter(value, filter_name=arg)
    return formatter(value)

# Path: native_tags/decorators.py
# def tag(bucket, doc):
#     def wrapped(inner, **options):


# Path: native_tags/contrib/generic_markup.py
from django.conf import settings
from django.template import TemplateSyntaxError
from native_tags.decorators import filter
from _markup import formatter
        from smartypants import smartyPants

"""
Filters for converting plain text to HTML and enhancing the
typographic appeal of text on the Web.

"""


def apply_markup(value, arg=None):
    """
    Applies text-to-HTML conversion.
    
    Takes an optional argument to specify the name of a filter to use.
    
    """
    if arg is not None:
        return formatter(value, filter_name=arg)
    return formatter(value)

apply_markup = filter(apply_markup, is_safe=True)