Snudown is a reddit-specific fork of the Sundown
Markdown parser used by GitHub, with Python integration added.
~/src/snudown run $ python setup.py buildsnudown.so file in the /snudown/build/lib.< os info >-< python version number> directory/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()
$ PYTHONPATH="$(pwd)" python ../../test_snudown.py
Run setup.py install to install the module.
For Mac OS X:
afl-fuzz via homebrew: brew install afl-fuzzpython setup.py installMany thanks to @vmg for implementing the initial version of this fork!
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.
C
87.5%
Python
10.6%
Makefile
1.4%
Snudown is a reddit-specific fork of the Sundown
Markdown parser used by GitHub, with Python integration added.
~/src/snudown run $ python setup.py buildsnudown.so file in the /snudown/build/lib.< os info >-< python version number> directory/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()
$ PYTHONPATH="$(pwd)" python ../../test_snudown.py
Run setup.py install to install the module.
For Mac OS X:
afl-fuzz via homebrew: brew install afl-fuzzpython setup.py installMany thanks to @vmg for implementing the initial version of this fork!
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.
C
87.5%
Python
10.6%
Makefile
1.4%