{"id":13619594,"url":"https://github.com/reddit/snudown","last_synced_at":"2025-09-04T09:09:16.106Z","repository":{"id":1751441,"uuid":"2577990","full_name":"reddit/snudown","owner":"reddit","description":"reddit's markdown renderer. based on sundown.","archived":false,"fork":false,"pushed_at":"2023-07-23T14:20:17.000Z","size":386,"stargazers_count":181,"open_issues_count":22,"forks_count":78,"subscribers_count":100,"default_branch":"master","last_synced_at":"2024-11-08T05:39:37.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reddit.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2011-10-14T18:31:19.000Z","updated_at":"2024-04-16T23:21:25.000Z","dependencies_parsed_at":"2022-08-31T18:10:20.012Z","dependency_job_id":"9e1c9bc4-3b31-4f07-b0f4-fd954f2f7c11","html_url":"https://github.com/reddit/snudown","commit_stats":{"total_commits":289,"total_committers":34,"mean_commits":8.5,"dds":0.4913494809688581,"last_synced_commit":"1ac2c130b210539ee1e5d67a7bac93f9d8007c0e"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddit%2Fsnudown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddit%2Fsnudown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddit%2Fsnudown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddit%2Fsnudown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reddit","download_url":"https://codeload.github.com/reddit/snudown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248916721,"owners_count":21182854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T21:00:45.367Z","updated_at":"2025-04-14T16:31:57.004Z","avatar_url":"https://github.com/reddit.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"Snudown\n=======\n\n`Snudown` is a reddit-specific fork of the [Sundown](http://github.com/vmg/sundown)\nMarkdown parser used by GitHub, with Python integration added.\n\n\nSetup for development on Mac OS X\n--------------------------------\n1. From `~/src/snudown` run `$ python setup.py build`\n2. If this is successful, there will now be a `snudown.so` file in the `/snudown/build/lib.\u003c os info \u003e-\u003c python version number\u003e` directory\n3. From within the `/lib.\u003c os info \u003e-\u003c python version number\u003e` directory, start a python interpreter\n```\n\u003c!-- Make sure you can import snudown --\u003e\n\u003e\u003e\u003e import snudown\n\u003c!-- verify that the build you just made is being used --\u003e\n\u003e\u003e\u003e print(snudown.__file__)\nsnudown.so\n\u003c!-- Test the functionality of the build --\u003e\n\u003e\u003e\u003e snudown.markdown('[hi](http://www.reddit.com)')\n'\u003cp\u003e\u003ca href=\"http://www.reddit.com\"\u003ehi\u003c/a\u003e\u003c/p\u003e\\n'\n\u003c!-- Great! You can exit now. --\u003e\n\u003e\u003e\u003e quit()\n```\n4. Verify that the tests pass\n```\n$ PYTHONPATH=\"$(pwd)\" python ../../test_snudown.py\n```\n5. Verify that all the previous steps work for both Python 2 AND Python 3\n\n\nInstall for general use\n-----------------------\n\nRun `setup.py install` to install the module.\n\nFor Mac OS X:\n1. Install `afl-fuzz` via homebrew: `brew install afl-fuzz`\n2. You can now install the module via `python setup.py install`\n3. You may also compile snudown using the Makefile directly if you so wish\n\n\nThanks\n------\n\nMany thanks to @vmg for implementing the initial version of this fork!\n\n\nLicense\n-------\n\nPermission to use, copy, modify, and distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddit%2Fsnudown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freddit%2Fsnudown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddit%2Fsnudown/lists"}