Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bhch/markdown-nofollow
- Owner: bhch
- License: cc0-1.0
- Created: 2015-06-16T06:52:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T07:19:24.000Z (over 9 years ago)
- Last Synced: 2024-10-19T10:25:12.623Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 374 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"`.