remark-custom-container
Advanced tools
Comparing version 1.1.1 to 1.1.2
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
7755
Yes