Skip to content

Commit a26a561

Browse files
author
Sethen Maleno
committed
Bumped version number, added .markdown extension to regular expression
1 parent 55cb46b commit a26a561

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

markdown-include.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ var q = require('q');
1212

1313
this.ignoreTag = ' !ignore';
1414
this.headingTag = ' !heading';
15-
this.includePattern = /^#include\s"(.+\/|\/|\w|-|\/)+.md"/gm;
16-
this.ignorePattern = new RegExp('^#include\\s"(.+\\/|\\/|\\w|-|\\/)+.md"' + this.ignoreTag, 'gm');
15+
this.includePattern = /^#include\s"(.+\/|\/|\w|-|\/)+\.(md|markdown)"/gm;
16+
this.ignorePattern = new RegExp('^#include\\s"(.+\\/|\\/|\\w|-|\\/)+\.(md|markdown)"' + this.ignoreTag, 'gm');
1717
this.headingPattern = new RegExp('^#+\\s.+' + this.headingTag, 'gm');
1818
this.tableOfContents = '';
1919
this.build = {};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-include",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"description": "Include markdown files into other markdown files with C style syntax.",
55
"main": "markdown-include.js",
66
"repository": {

0 commit comments

Comments
 (0)