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

strapi-markdown-parser

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-markdown-parser - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

index.js
class StrapiMarkdown {
constructor(model, types, options) {
if (types.constructor === Object) {
this.types = {}
if (types && types.constructor === Object) {
this.types.standard = types.standard
this.types.inline = types.inline
} else if (Array.isArray(types)) {
} else if (types && Array.isArray(types)) {
this.types.standard = types

@@ -15,4 +17,4 @@ } else {

options.markdown
? this.marked.setOptions(options.marked)
options
? this.marked.setOptions(options)
: this.marked.setOptions({

@@ -19,0 +21,0 @@ smartypants: true,

2

package.json
{
"name": "strapi-markdown-parser",
"version": "0.0.1",
"version": "0.0.2",
"description": "Strapi controller module to parse Markdown to HTML",

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

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