Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update gitignore and fix page title. closes #12

  • Loading branch information...
commit df9875bc4876f3964ebec530564d71c2a121479b 1 parent b1de7bf
@millermedeiros authored
Showing with 5 additions and 1 deletion.
  1. +3 −0  .gitignore
  2. +2 −1  src/js/parser.js
View
3  .gitignore
@@ -1 +1,4 @@
node_modules/
+examples/advanced/doc/
+examples/basic/doc/
+examples/node_api/doc/
View
3  src/js/parser.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.