diff --git a/markdown-include.js b/markdown-include.js index e98cbdd..ca12dfc 100644 --- a/markdown-include.js +++ b/markdown-include.js @@ -12,8 +12,8 @@ var q = require('q'); this.ignoreTag = ' !ignore'; this.headingTag = ' !heading'; -this.includePattern = /^#include\s"(.+\/|\/|\w|-|\/)+.md"/gm; -this.ignorePattern = new RegExp('^#include\\s"(.+\\/|\\/|\\w|-|\\/)+.md"' + this.ignoreTag, 'gm'); +this.includePattern = /^#include\s"(.+\/|\/|\w|-|\/)+\.(md|markdown)"/gm; +this.ignorePattern = new RegExp('^#include\\s"(.+\\/|\\/|\\w|-|\\/)+\.(md|markdown)"' + this.ignoreTag, 'gm'); this.headingPattern = new RegExp('^#+\\s.+' + this.headingTag, 'gm'); this.tableOfContents = ''; this.build = {}; diff --git a/package.json b/package.json index 1eae0ea..aabe987 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "markdown-include", - "version": "0.4.2", + "version": "0.4.3", "description": "Include markdown files into other markdown files with C style syntax.", "main": "markdown-include.js", "repository": {