<commit_before>## Markdown Extension to have custom callback to rewrite links

# Installation

    pip install git+git://github.com/mortbauer/markdown_rewritelink.git

# Usage

    >>> import markdown
    >>> from markdown_rewritelink import RewriteLinkExtension
    >>> def mycallback(link):
            modified_link = link + '/hallo'
            return modified_link
    >>> rewritelink = RewriteLinkExtension(config={'rewrite_link_callback':mycallback})
    >>> html = markdown.markdown(src, extensions=[rewritelink])
    >>> print(html)


Dependencies
------------

* [Markdown 2.0+](http://www.freewisdom.org/projects/python-markdown/)


All rights reserved.

This software is released under the modified BSD License. <commit_msg>changed to MIT license<commit_after>## Markdown Extension to have custom callback to rewrite links

# Installation

    pip install git+git://github.com/mortbauer/markdown_rewritelink.git

# Usage

    >>> import markdown
    >>> from markdown_rewritelink import RewriteLinkExtension
    >>> def mycallback(link):
            modified_link = link + '/hallo'
            return modified_link
    >>> rewritelink = RewriteLinkExtension(config={'rewrite_link_callback':mycallback})
    >>> html = markdown.markdown(src, extensions=[rewritelink])
    >>> print(html)


Dependencies
------------

* [Markdown 2.0+](http://www.freewisdom.org/projects/python-markdown/)


All rights reserved.

This software is released under the modified MIT License. 
{'fraction_non_alphanumeric': 0.12153950033760973, 'fraction_numerical': 0.0027008777852802163, 'mean_word_length': 3.689873417721519, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7162045', 'n_tokens_mistral': 439, 'n_tokens_neox': 412, 'n_words': 101}