markdown-magic
Advanced tools
Comparing version 0.1.15 to 0.1.16
"use strict" // eslint-disable-line | ||
/*eslint-disable */ | ||
module.exports.matchCommentBlock = function(matchWord) { | ||
return new RegExp(`(?:\\<\\!--(?:.|\\n)*?${matchWord}:START(?:.|\\n)*?\\()(.*)\\)(?:.|\\n)*?<!--(?:.|\\n)*?${matchWord}:END(?:.|\\n)*?--\\>`, 'g') | ||
return new RegExp(`(?:\\<\\!--(?:.|\\r?\\n)*?${matchWord}:START(?:.|\\r?\\n)*?\\()(.*)\\)(?:.|\\r?\\n)*?<!--(?:.|\\r?\\n)*?${matchWord}:END(?:.|\\r?\\n)*?--\\>`, 'g') | ||
} | ||
module.exports.matchOpeningCommentTag = function (matchWord) { | ||
return new RegExp(`(\\<\\!--(?:.|\\n)*?${matchWord}:START)((?:.|\\n)*?--\\>)`, 'g') | ||
return new RegExp(`(\\<\\!--(?:.|\\r?\\n)*?${matchWord}:START)((?:.|\\r?\\n)*?--\\>)`, 'g') | ||
} | ||
module.exports.matchClosingCommentTag = function (matchWord) { | ||
return new RegExp(`((?:\\<\\!--(?:.*|\\n)(?:.*|\\n))*?${matchWord}:END)((?:.|\\n)*?--\\>)`, 'g') | ||
return new RegExp(`((?:\\<\\!--(?:.*|\\r?\\n)(?:.*|\\r?\\n))*?${matchWord}:END)((?:.|\\r?\\n)*?--\\>)`, 'g') | ||
} |
{ | ||
"name": "markdown-magic", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "Automatically update markdown files with content from external sources", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,2 +13,3 @@ # Markdown Magic | ||
- Automatically generate a table of contents | ||
- ... etc | ||
@@ -197,3 +198,3 @@ This `README.md` is generated with `markdown-magic` [view the raw file](https://raw.githubusercontent.com/DavidWells/markdown-magic/master/README.md) to see how. | ||
* [version-badge](https://github.com/camacho/markdown-magic-version-badge) - Add a badge with the latest version of the project | ||
* [template] (https://github.com/camacho/markdown-magic-template) - Add Lodash template support | ||
* [template](https://github.com/camacho/markdown-magic-template) - Add Lodash template support | ||
@@ -200,0 +201,0 @@ ## Custom Transforms |
51366
320