Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion june/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def gist(link, content=None):
match = re.match(pattern, link)
if not match:
return None
html = '<script src="%(link)s.js"></script>' % match.group(1)
html = '<script src="%(link)s.js"></script>' % { 'link' : match.group(1) }
if not content:
return html
return '<figure>%s<figcaption>%s</figcaption></figure>' % (
Expand Down
2 changes: 1 addition & 1 deletion june/handlers/front.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import datetime
from flask import Blueprint, request, g, current_app
from flask import render_template, Response, jsonify
from ..utils.markdown import markdown
from ..filters import markdown
from ..utils.user import require_user
from ..models import Node, Topic, fill_topics, cache

Expand Down
2 changes: 1 addition & 1 deletion tests/test_markdown.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from june.utils.markdown import markdown
from june.filters import markdown


def test_none():
Expand Down