my eye

__init__.py

Raw

import operator
import re

import pendulum
import web
from mf import discover_post_type
from web import tx

__all__ = ["tx", "operator", "discover_post_type", "post_mkdn", "re", "pendulum"]


def post_mkdn(content):
    return str(
        web.mkdn(
            str(
                web.template(
                    content,
                    # TODO globals={"get": webagt.get, "pformat": pprint.pformat},
                    restricted=True,
                )()
            )
        )
    )
    # XXX globals=micropub.markdown_globals