Skip to content

Commit

Permalink
0.2.8 released
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Dec 27, 2015
1 parent b63d85c commit 256b4c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var stripHTML = util.stripHTML;
var MarkedRenderer = marked.Renderer;

function Renderer(ctx) {
MarkedRenderer.apply(this, arguments);
MarkedRenderer.apply(this);

this._headingId = {};
this.ctx = ctx;
Expand Down Expand Up @@ -49,7 +49,9 @@ function anchorId(str) {
return escape(str
.replace(/\s+/g, '_')
.replace(/\./g, '-')
.replace(/-{2,}/g, '-')).replace(/%/g, '_').replace(/^[\-_]+|[\-_]+$/g, '');
.replace(/-{2,}/g, '-'))
.replace(/%/g, '_')
.replace(/^[\-_]+|[\-_]+$/g, '');
}

marked.setOptions({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-renderer-marked",
"version": "0.2.7",
"version": "0.2.8",
"description": "Markdown renderer plugin for Hexo",
"main": "index",
"scripts": {
Expand Down

0 comments on commit 256b4c5

Please sign in to comment.