Skip to content

Commit

Permalink
Merge pull request #497 from smortex/480
Browse files Browse the repository at this point in the history
CommonMark >= 0.8.x preparation (rebased)
  • Loading branch information
bastelfreak committed Oct 31, 2019
2 parents d81c7c8 + c9ded4f commit 04cfe06
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions puppetboard/app.py
Expand Up @@ -25,7 +25,11 @@
from puppetboard.dailychart import get_daily_reports_chart

import werkzeug.exceptions as ex
import CommonMark

try:
import CommonMark as commonmark
except ImportError:
import commonmark

from puppetboard.core import get_app, get_puppetdb, environments
import puppetboard.errors
Expand Down Expand Up @@ -547,7 +551,7 @@ def report(env, node_name, report_id):
except StopIteration:
abort(404)

report.version = CommonMark.commonmark(report.version)
report.version = commonmark.commonmark(report.version)

return render_template(
'report.html',
Expand Down

0 comments on commit 04cfe06

Please sign in to comment.