• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

reddit/snudown: reddit's markdown renderer. based on sundown.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

reddit/snudown

开源软件地址(OpenSource Url):

https://github.com/reddit/snudown

开源编程语言(OpenSource Language):

C 87.6%

开源软件介绍(OpenSource Introduction):

Snudown

Snudown is a reddit-specific fork of the Sundown Markdown parser used by GitHub, with Python integration added.

Setup for development on Mac OS X

  1. From ~/src/snudown run $ python setup.py build
  2. If this is successful, there will now be a snudown.so file in the /snudown/build/lib.< os info >-< python version number> directory
  3. From within the /lib.< os info >-< python version number> directory, start a python interpreter
<!-- Make sure you can import snudown -->
>>> import snudown
<!-- verify that the build you just made is being used -->
>>> print(snudown.__file__)
snudown.so
<!-- Test the functionality of the build -->
>>> snudown.markdown('[hi](http://www.reddit.com)')
'<p><a href="http://www.reddit.com">hi</a></p>\n'
<!-- Great! You can exit now. -->
>>> quit()
  1. Verify that the tests pass
$ PYTHONPATH="$(pwd)" python ../../test_snudown.py
  1. Verify that all the previous steps work for both Python 2 AND Python 3

Install for general use

Run setup.py install to install the module.

For Mac OS X:

  1. Install afl-fuzz via homebrew: brew install afl-fuzz
  2. You can now install the module via python setup.py install
  3. You may also compile snudown using the Makefile directly if you so wish

Thanks

Many thanks to @vmg for implementing the initial version of this fork!

License

Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
m4ttsch/omscs-notes-notes: The raw markdown notes for OMSCS Notes.发布时间:2022-08-18
下一篇:
chmllr/notehub: A pastebin for markdown pages.发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap