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

markmap-lib

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markmap-lib - npm Package Compare versions

Comparing version 0.15.9-alpha.11 to 0.15.9-alpha.12

50

dist/plugins.js

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

const yaml = require("js-yaml");
const hljs$1 = require("highlight.js");
const hljs = require("highlight.js");
const remarkableKatex = require("remarkable-katex");

@@ -54,5 +54,5 @@ function createTransformHooks(transformer) {

});
const checkbox = plugin$3;
const pluginCheckbox = plugin$3;
const name$4 = "frontmatter";
const frontmatter = definePlugin({
const pluginFrontmatter = definePlugin({
name: name$4,

@@ -68,8 +68,8 @@ transform(transformHooks) {

const raw = content.slice(4, match.index);
let frontmatter2;
let frontmatter;
try {
frontmatter2 = yaml.load(raw);
if (frontmatter2 == null ? void 0 : frontmatter2.markmap) {
frontmatter2.markmap = normalizeMarkmapJsonOptions(
frontmatter2.markmap
frontmatter = yaml.load(raw);
if (frontmatter == null ? void 0 : frontmatter.markmap) {
frontmatter.markmap = normalizeMarkmapJsonOptions(
frontmatter.markmap
);

@@ -80,3 +80,3 @@ }

}
context.frontmatter = frontmatter2;
context.frontmatter = frontmatter;
context.content = content.slice(match.index + match[0].length);

@@ -139,3 +139,3 @@ context.contentLineOffset = content.slice(0, match.index).split("\n").length + 1;

enableFeature();
return hljs$1.highlightAuto(str, language ? [language] : void 0).value;
return hljs.highlightAuto(str, language ? [language] : void 0).value;
}

@@ -154,3 +154,3 @@ });

});
const hljs = plugin$2;
const pluginHljs = plugin$2;
const name$2 = "katex";

@@ -236,10 +236,10 @@ const preloadScripts = [

});
const katex = plugin$1;
const pluginKatex = plugin$1;
const name$1 = "npmUrl";
const npmUrl = definePlugin({
const pluginNpmUrl = definePlugin({
name: name$1,
transform(transformHooks) {
transformHooks.afterParse.tap((_, context) => {
const { frontmatter: frontmatter2 } = context;
const markmap = frontmatter2 == null ? void 0 : frontmatter2.markmap;
const { frontmatter } = context;
const markmap = frontmatter == null ? void 0 : frontmatter.markmap;
if (markmap) {

@@ -295,13 +295,19 @@ ["extraJs", "extraCss"].forEach((key) => {

}
const sourceLines = plugin;
const pluginSourceLines = plugin;
const plugins = [
frontmatter,
katex,
hljs,
npmUrl,
checkbox,
sourceLines
pluginFrontmatter,
pluginKatex,
pluginHljs,
pluginNpmUrl,
pluginCheckbox,
pluginSourceLines
];
exports.createTransformHooks = createTransformHooks;
exports.definePlugin = definePlugin;
exports.pluginCheckbox = pluginCheckbox;
exports.pluginFrontmatter = pluginFrontmatter;
exports.pluginHljs = pluginHljs;
exports.pluginKatex = pluginKatex;
exports.pluginNpmUrl = pluginNpmUrl;
exports.pluginSourceLines = pluginSourceLines;
exports.plugins = plugins;

@@ -0,2 +1,9 @@

import pluginCheckbox from './checkbox';
import pluginFrontmatter from './frontmatter';
import pluginHljs from './hljs';
import pluginKatex from './katex';
import pluginNpmUrl from './npm-url';
import pluginSourceLines from './source-lines';
export * from './base';
export { pluginCheckbox, pluginFrontmatter, pluginHljs, pluginKatex, pluginNpmUrl, pluginSourceLines, };
export declare const plugins: import("..").ITransformPlugin[];
{
"name": "markmap-lib",
"version": "0.15.9-alpha.11+d60da2f",
"version": "0.15.9-alpha.12+e2132d2",
"description": "Visualize your Markdown as mindmaps with Markmap",

@@ -62,4 +62,4 @@ "author": "Gerald <gera2ld@live.com>",

"@types/remarkable": "^2.0.3",
"markmap-common": "0.15.9-alpha.11+d60da2f",
"markmap-view": "0.15.9-alpha.11+d60da2f",
"markmap-common": "0.15.9-alpha.12+e2132d2",
"markmap-view": "0.15.9-alpha.12+e2132d2",
"webfontloader": "^1.6.28"

@@ -72,3 +72,3 @@ },

"katex": "^0.16.8",
"markmap-html-parser": "0.15.9-alpha.11+d60da2f",
"markmap-html-parser": "0.15.9-alpha.12+e2132d2",
"prismjs": "^1.29.0",

@@ -91,3 +91,3 @@ "remarkable": "^2.0.1",

},
"gitHead": "d60da2fb13a85edec875ef002f1be414a0c00abe"
"gitHead": "e2132d2615f5b19e246478dc9dbb6b6ca4d6d75f"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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