• Stars
    star
    180
  • Rank 205,786 (Top 5 %)
  • Language
    C
  • Created over 12 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

reddit's markdown renderer. based on sundown.

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.

More Repositories

1

IndicatorFastScroll

Android library providing a simple UI control for scrolling through RecyclerViews
Kotlin
698
star
2

baseplate.py

reddit's python service framework
Python
529
star
3

redditsans

Reddit Sans. The typeface of the internet.
Pug
368
star
4

rpan-studio

RPAN Studio
C
263
star
5

rollingpin

fast deploy to lots of servers
Python
144
star
6

baseplate.go

Reddit's Service Framework in Go
Go
89
star
7

bugs

opinionated jira client for 80% of a devs jira usage
Shell
87
star
8

node-api-client

JavaScript
86
star
9

mcsauna

Track hottest memcached keys by regex in a graphite-friendly format.
Go
63
star
10

monitors

daemons to monitor reddit ops
Python
61
star
11

thebutton-data

press history for /r/thebutton
60
star
12

AlienBlue

Alien Blue iOS app - r/AlienBlue
Objective-C
59
star
13

node-platform

A set of tools to enable easy universal rendering and page navigation on a React + Redux stack
JavaScript
47
star
14

node-horse

JavaScript
35
star
15

error-pages

the bummer mobile
HTML
33
star
16

node-build

build system for ES2015 projects
JavaScript
29
star
17

node-flags

🐾
JavaScript
25
star
18

devvit

Reddit for Developers
TypeScript
25
star
19

CodableRPC

A Swift RPC client & server implementation using Codable.
Swift
18
star
20

node-horse-react

JavaScript
14
star
21

diamond-memcached-slab-collector

A Diamond collector for capturing memcached slab statistics.
Python
13
star
22

experiments.py

reddit's python experiments framework
Python
10
star
23

snooboots

Exploratory bootstrap customized for reddit
CSS
9
star
24

cabot-alert-slack

A simple Cabot alerting plugin for Slack.
Python
9
star
25

event-tracker

JavaScript
9
star
26

node-rest-cache

An LRU-based caching solution for rest-like data fetching.
JavaScript
9
star
27

cqlmapper

A baseplate compatible fork of datastax' cqlengine library
Python
9
star
28

node-widgets

A collection of Reddit specific React components and the Redux actions and reducers to accompany them
JavaScript
8
star
29

devvit-sandbox

Devvit example apps and sketches not ready for production.
TypeScript
8
star
30

obs-browser-plugin

Browser plugin for OBS Studio
C++
8
star
31

node-middleware

Middleware for Redux
JavaScript
7
star
32

node-private

login / register / etc endpoints, only useful if you have access your own reddit instance
JavaScript
7
star
33

node-text-js

JavaScript
7
star
34

play

πŸ› A little playground for building apps on Reddit.
TypeScript
6
star
35

monoceros

Go
6
star
36

jsapi-example-consumer

JavaScript
5
star
37

reddit-gtm-template

The official tag template for the Reddit conversion pixel for use with Google Tag Manager
Smarty
5
star
38

baseplate.py-upgrader

automates much of the work of upgrading to newer baseplate.py versions
Python
4
star
39

iOS-interview

Sandbox for the iOS Programming Interview
Swift
4
star
40

reddit-coredns-plugins

Some CoreDNS plugins that reddit made
Go
3
star
41

django-underpants

tiny helpers for integrating django with underpants
Python
3
star
42

reddit-client-lib

library of client side code to be shared between multiple projects
JavaScript
3
star
43

checkpoints

2
star
44

edgecontext

request.edge_context payload definitions
Go
2
star
45

baseplate-celery

Python
2
star
46

thrift-compiler

a thrift compiler in a docker container
Dockerfile
2
star
47

test

1
star
48

thrift-python

1
star
49

docker-bazelisk

Docker image for Bazelisk
Dockerfile
1
star
50

android-interview

Sandbox for Android Programming Interview
Kotlin
1
star
51

spinnakerpb

Protobufs and a Golang lib for representing Spinnaker pipelines
Go
1
star
52

.github

1
star
53

data-firehose-client

JavaScript
1
star