slack markdown extension for Python-Markdown https://github.com/Python-Markdown/markdown
Installation
$ pip install git+git://github.com/kipwise/python-markdown-slack.git#egg=python-markdown-slack
- Try the following codes
import markdown
from python_markdown_slack import PythonMarkdownSlack
result = markdown.markdown('... Some *bold*', extensions=[PythonMarkdownSlack()])
print(result) #=> <p>... Some <strong>bold</strong></p>
Test script
- python test.py
For development of the library
-
$ git clone git@github.com:kipwise/python-markdown-slack.git
-
$ python setup.py develop
-
$ python learnExtension.py
Reference:
- https://github.com/Python-Markdown/markdown/wiki/Tutorial:-Writing-Extensions-for-Python-Markdown
- https://github.com/dkeeghan/slackformatter.js
Powered By:
- Kipwise https://kipwise.com