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

remark-custom-container

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-custom-container - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

dist/esm/index.js
import { visit } from "unist-util-visit";
export const REGEX_CUSTOM_CONTAINER = /:::\s*(\w+)\s*(.*?)[\n\r]([^]*)[\n\r]\s*:::/;
export const REGEX_CUSTOM_CONTAINER = /^\s*:::\s*(\w+)\s*(.*?)[\n\r]([\s\S]+?)\s*:::\s*?/;
const DEFAULT_SETTINGS = {

@@ -4,0 +4,0 @@ className: "remark-container",

@@ -5,3 +5,3 @@ "use strict";

const unist_util_visit_1 = require("unist-util-visit");
exports.REGEX_CUSTOM_CONTAINER = /:::\s*(\w+)\s*(.*?)[\n\r]([^]*)[\n\r]\s*:::/;
exports.REGEX_CUSTOM_CONTAINER = /^\s*:::\s*(\w+)\s*(.*?)[\n\r]([\s\S]+?)\s*:::\s*?/;
const DEFAULT_SETTINGS = {

@@ -17,3 +17,3 @@ className: "remark-container",

const transformer = (tree) => {
unist_util_visit_1.visit(tree, (node, index, parent) => {
(0, unist_util_visit_1.visit)(tree, (node, index, parent) => {
if (index == null)

@@ -20,0 +20,0 @@ return;

{
"name": "remark-custom-container",
"version": "1.1.1",
"version": "1.1.2",
"description": "remark parser plugin for custom directive in markdown",
"author": "koka831",
"license": "MIT",
"type": "module",
"export": "dist/index.js",

@@ -35,3 +36,3 @@ "module": "dist/esm/index.js",

"@jest/types": "^27.0.6",
"@types/jest": "^26.0.24",
"@types/jest": "^27.0.3",
"@types/node": "^16.4.2",

@@ -38,0 +39,0 @@ "@types/unist": "^2.0.3",

Sorry, the diff of this file is not supported yet

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