gitbook-plugin-github-extractor
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -58,3 +58,3 @@ module.exports = { | ||
/* Return example text. Maybe anchored between //!some-identifier */ | ||
/* Return example text. Maybe anchored between //#some-identifier */ | ||
function contentText(obj) { | ||
@@ -64,3 +64,3 @@ if(isEmpty(obj.anchor)) { | ||
} else { | ||
const regex = new RegExp("\\/\\/!"+obj.anchor+"\\s([\\s\\S]*)\\/\\/!"+obj.anchor) | ||
const regex = new RegExp("\\/\\/#"+obj.anchor+"\\s([\\s\\S]*)\\/\\/#"+obj.anchor) | ||
const result = regex.exec(obj.text); | ||
@@ -67,0 +67,0 @@ if(result) { |
{ | ||
"name": "gitbook-plugin-github-extractor", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Extract GitHub code examples and expande then on GitBook markdown processing.", | ||
@@ -5,0 +5,0 @@ "engines": { |