Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bhch/markdown-nofollow

Python-Markdown Extension to add rel="nofollow" to all links
https://github.com/bhch/markdown-nofollow

Last synced: 21 days ago
JSON representation

Python-Markdown Extension to add rel="nofollow" to all links

Awesome Lists containing this project

README

        

# markdown-nofollow

This extension modifies the HTML output of Python-Markdown to add `rel="nofollow"` attribute to all links.

## Usage

>>> import markdown
>>> from md_nofollow import NofollowExtension
>>>
>>> raw_text = "Lets add nofollow to [links](http://github.com)"
>>> markdown.markdown(raw_text, extensions=[NofollowExtension()]

"

Lets add nofollow to links

"

## Credits

This is a fork of [markdown-newtab](https://github.com/Undeterminant/markdown-newtab) which adds `target="_blank"` to links. The code has been modifed to add `rel="nofollow"`.