将HTML转换为松弛格式的标记
html-slacker的Python项目详细描述
将HTML转换为松弛格式的标记
用法
从pip安装htmlslacker。
$ pip install html-slacker
导入库。
>>>fromhtmlslackerimportHTMLSlacker
使用它。
>>>HTMLSlacker('<b>Hello</b>, <i>Slack</i>!').get_output()'*Hello*, _Slack_!'
测试一下。
$pythonsetup.pytest
要求
- python>;=2.5
- HTML
链接
存储库:https://github.com/codex-team/html-slacker
报告错误:https://github.com/codex-team/html-slacker/issues
pypi包:https://pypi.python.org/pypi/html-slacker
代码组:https://ifmo.su