# Path: templar/markdown.py
# def convert(text):
#     def __init__(self, text, pre_hook=None, post_hook=None):
#     def convert(self, text, footnotes=False):
#     def __add__(self, other):
#     def __radd__(self, other):
#     def __getitem__(self, index):
#     def __setitem__(self, key, value):
#     def __repr__(self):
# def escape(text):
# def preprocess(text, markdown_obj):
# def sub_retab(match):
# def handle_whitespace(text):
# def get_variables(text):
# def get_references(text):
# def get_footnote_backreferences(text, markdown_obj):
# def remove_pandoc_comments(text):
# def space_out_block_tags(text):
# def apply_hashes(text, markdown_obj):
# def hash_text(s, label):
# def hash_blocks(text, hashes):
#     def sub(match):
# def hash_lists(text, hashes, markdown_obj):
# def hash_codeblocks(text, hashes):
#     def sub(match):
# def hash_blockquotes(text, hashes, markdown_obj):
#     def sub(match):
# def hash_tables(text, hashes, markdown_obj):
#     def sub(match):
# def hash_codes(text, hashes):
#     def sub(match):
# def hash_inline_links(text, hashes, markdown_obj):
#     def sub(match):
# def hash_reference_links(text, hashes, markdown_obj):
#     def sub(match):
# def hash_footnote_reference(text, hashes, markdown_obj):
#     def sub(match):
# def hash_tags(text, hashes):
#     def sub(match):
# def unhash(text, hashes):
#     def retrieve_match(match):
# def apply_substitutions(text):
# def hr_sub(match):
# def emphasis_sub(match):
# def auto_escape_sub(match):
# def escapes_sub(match):
# def atx_header_sub(match):
# def setext_header_sub(match):
# def paragraph_sub(match):
# def postprocess(text, markdown_obj, footnotes=False):
# def slug_sub(match):
# def generate_footnotes(markdown_obj):
# def cmd_options(parser):
# def main(args=None):
# class Markdown:
# TAB_SIZE = 4
# SALT = bytes(randint(0, 1000000))
# 
# Path: templar/api/rules/core.py
# class Rule:
# class SubstitutionRule(Rule):
# class VariableRule(Rule):
# class InvalidRule(TemplarError):
#     def __init__(self, src=None, dst=None):
#     def applies(self, src, dst):
#     def apply(self, content):
#     def substitute(self, match):
#     def apply(self, content):
#     def extract(self, content):
#     def apply(self, content):


from templar import markdown
from templar.api.rules import core

class MarkdownToHtmlRule(core.Rule):
    def __init__(self, src=r'\.md', dst=r'\.html'):
        super().__init__(src, dst)


# Path: templar/markdown.py
# def convert(text):
#     def __init__(self, text, pre_hook=None, post_hook=None):
#     def convert(self, text, footnotes=False):
#     def __add__(self, other):
#     def __radd__(self, other):
#     def __getitem__(self, index):
#     def __setitem__(self, key, value):
#     def __repr__(self):
# def escape(text):
# def preprocess(text, markdown_obj):
# def sub_retab(match):
# def handle_whitespace(text):
# def get_variables(text):
# def get_references(text):
# def get_footnote_backreferences(text, markdown_obj):
# def remove_pandoc_comments(text):
# def space_out_block_tags(text):
# def apply_hashes(text, markdown_obj):
# def hash_text(s, label):
# def hash_blocks(text, hashes):
#     def sub(match):
# def hash_lists(text, hashes, markdown_obj):
# def hash_codeblocks(text, hashes):
#     def sub(match):
# def hash_blockquotes(text, hashes, markdown_obj):
#     def sub(match):
# def hash_tables(text, hashes, markdown_obj):
#     def sub(match):
# def hash_codes(text, hashes):
#     def sub(match):
# def hash_inline_links(text, hashes, markdown_obj):
#     def sub(match):
# def hash_reference_links(text, hashes, markdown_obj):
#     def sub(match):
# def hash_footnote_reference(text, hashes, markdown_obj):
#     def sub(match):
# def hash_tags(text, hashes):
#     def sub(match):
# def unhash(text, hashes):
#     def retrieve_match(match):
# def apply_substitutions(text):
# def hr_sub(match):
# def emphasis_sub(match):
# def auto_escape_sub(match):
# def escapes_sub(match):
# def atx_header_sub(match):
# def setext_header_sub(match):
# def paragraph_sub(match):
# def postprocess(text, markdown_obj, footnotes=False):
# def slug_sub(match):
# def generate_footnotes(markdown_obj):
# def cmd_options(parser):
# def main(args=None):
# class Markdown:
# TAB_SIZE = 4
# SALT = bytes(randint(0, 1000000))
# 
# Path: templar/api/rules/core.py
# class Rule:
# class SubstitutionRule(Rule):
# class VariableRule(Rule):
# class InvalidRule(TemplarError):
#     def __init__(self, src=None, dst=None):
#     def applies(self, src, dst):
#     def apply(self, content):
#     def substitute(self, match):
#     def apply(self, content):
#     def extract(self, content):
#     def apply(self, content):


# Path: templar/api/rules/compiler_rules.py
from templar import markdown
from templar.api.rules import core


class MarkdownToHtmlRule(core.Rule):
    def __init__(self, src=r'\.md', dst=r'\.html'):
        super().__init__(src, dst)


    def apply(self, content):