New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

markdown-magic

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-magic - npm Package Compare versions

Comparing version 0.1.22 to 0.1.23

7

lib/transforms/code.js

@@ -48,6 +48,11 @@ "use strict" // eslint-disable-line

let header = ''
if (options.header) {
header = `\n${options.header}`
}
return `<!-- The below code snippet is automatically added from ${options.src} -->
\`\`\`${syntax}
\`\`\`${syntax}${header}
${code}
\`\`\``
}

@@ -15,2 +15,3 @@ "use strict" // eslint-disable-line

* - `syntax` (optional): Syntax will be inferred by fileType if not specified
* - `header` (optional): Will add header comment to code snippet. Useful for pointing to relative source directory or adding live doc links
*

@@ -17,0 +18,0 @@ * **Example:**

2

package.json
{
"name": "markdown-magic",
"version": "0.1.22",
"version": "0.1.23",
"description": "Automatically update markdown files with content from external sources",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -148,2 +148,3 @@ # Markdown Magic [![npm-version][npm-badge]][npm-link]

- `syntax` (optional): Syntax will be inferred by fileType if not specified
- `header` (optional): Will add header comment to code snippet. Useful for pointing to relative source directory or adding live doc links

@@ -150,0 +151,0 @@ **Example:**

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