Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove h1 restriction

  • Loading branch information...
commit 4da9831a54279811d9297ad25359dee03bf0de5d 1 parent 05bd58c
@gjtorikian authored
Showing with 3 additions and 7 deletions.
  1. +2 −6 lib/generator.js
  2. +1 −1  package.json
View
8 lib/generator.js
@@ -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
2  package.json
@@ -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",
Please sign in to comment.
Something went wrong with that request. Please try again.