Permalink
Browse files

update gitignore and fix page title. closes #12

  • Loading branch information...
1 parent b1de7bf commit df9875bc4876f3964ebec530564d71c2a121479b @millermedeiros committed Feb 22, 2012
Showing with 5 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +2 −1 src/js/parser.js
View
@@ -1 +1,4 @@
node_modules/
+examples/advanced/doc/
+examples/basic/doc/
+examples/node_api/doc/
View
@@ -74,7 +74,8 @@ function getHeaderRegExp(level){
}
function getHeaderHashes(level){
- return (new Array((_headingLevel || level) + 1)).join('#');
+ level = level != null? level : _headingLevel;
+ return (new Array(level + 1)).join('#');
}
function getDescription(mdown, fromIndex) {

0 comments on commit df9875b

Please sign in to comment.