Skip to content

Commit

Permalink
rename function since it is not only for github
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Oct 17, 2018
1 parent b2c9a73 commit a5f2214
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cicero/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def home():
return flask.render_template('index.html', url_base=URL_BASE)


def render_github_markdown(path, engine, engine_version):
def render_url_markdown(path, engine, engine_version):
from .title import extract_title
from .images import fix_images

Expand Down Expand Up @@ -120,14 +120,14 @@ def render_github_markdown(path, engine, engine_version):

@blueprint.route('/v1/github/<path:path>/remark/')
def render_v1(path):
return render_github_markdown('github.com' + '/' + path, 'remark', '0.13.0')
return render_url_markdown('github.com' + '/' + path, 'remark', '0.13.0')


@blueprint.route('/v2/remark/github/<path:path>/')
def render_v2(path):
return render_github_markdown('github.com' + '/' + path, 'remark', '0.13.0')
return render_url_markdown('github.com' + '/' + path, 'remark', '0.13.0')


@blueprint.route('/v3/<string:engine>/<string:engine_version>/<path:path>/')
def render_v3(path, engine, engine_version):
return render_github_markdown(path, engine, engine_version)
return render_url_markdown(path, engine, engine_version)

0 comments on commit a5f2214

Please sign in to comment.