Permalink
Browse files

Remove h1 restriction

  • Loading branch information...
1 parent 05bd58c commit 4da9831a54279811d9297ad25359dee03bf0de5d @gjtorikian committed Oct 26, 2012
Showing with 3 additions and 7 deletions.
  1. +2 −6 lib/generator.js
  2. +1 −1 package.json
View
@@ -29,12 +29,8 @@ Generator.render = function(manifest, jadeCompileFn, filepath, filename, srcCont
for (var h = 0; h < toh.length; h++) {
var heading = toh[h];
if (heading.rank == 1) {
- if (found) {
- callback("ERROR: In " + filename + ", you have more than one H1 tag.");
- }
- else {
- found = heading;
- }
+ found = heading;
+ break;
}
}
View
@@ -1,6 +1,6 @@
{
"name": "panda-docs",
- "version": "0.3.20",
+ "version": "0.3.21",
"author": "Garen Torikian",
"keywords": ["documentation", "docs", "markdown"],
"description": "A complete documentation generation tool for Markdown files",

0 comments on commit 4da9831

Please sign in to comment.