Permalink
Browse files

Revert broken github-flavored markdown handling

  • Loading branch information...
1 parent c503f17 commit 1215e6d22d1c0301fee756309687eb123a719fb6 @idan committed Jul 22, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 gistio.py
View
@@ -4,7 +4,6 @@
from redis import StrictRedis
from markdown2 import markdown
-from github_md import gfm
import requests
import bleach
@@ -79,7 +78,7 @@ def fetch_and_render(id):
decoded = r.json.copy()
for f in decoded['files'].values():
if f['language'] in RENDERABLE:
- f['rendered'] = bleach.clean(markdown(gfm(f['content'])),
+ f['rendered'] = bleach.clean(markdown(f['content']),
tags=ALLOWED_TAGS, attributes=ALLOWED_ATTRIBUTES)
encoded = json.dumps(decoded)
cache.setex(id, CACHE_EXPIRATION, encoded)

1 comment on commit 1215e6d

Unfortunately, this means that "code fences" don't render properly on gist.io. 😢

Please sign in to comment.