Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-plugin-github-extractor

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-github-extractor - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

4

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc