Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(ngdocs): remove douple ids from headings
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Oct 27, 2014
1 parent e4f09e7 commit 485408a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ngdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ var fs = require('fs');
var fspath = require('path');
var errorsJson;
var marked = require('marked');
var renderer = new marked.Renderer();
renderer.heading = function (text, level) {
return '<h' +
level +
'>' +
text +
'</h' +
level +
'>\n';
};
marked.setOptions({
renderer: renderer,
gfm: true,
tables: true
});
Expand Down

0 comments on commit 485408a

Please sign in to comment.