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.13.3-alpha.1 to 0.13.3-alpha.2

types/plugins/katex.options.d.ts

110

dist/index.esm.js

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

/*! markmap-lib v0.13.3-alpha.1+f7f5075 | MIT License */
/*! markmap-lib v0.13.3-alpha.2+a5a159b | MIT License */
import _extends from '@babel/runtime/helpers/esm/extends';

@@ -11,3 +11,3 @@ import { persistCSS, persistJS, wrapFunction, Hook } from 'markmap-common';

const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n";
const BASE_JS = [`https://cdn.jsdelivr.net/npm/d3@${"6.7.0"}`, `https://cdn.jsdelivr.net/npm/markmap-view@${"0.13.3-alpha.1+f7f5075"}`].map(src => ({
const BASE_JS = [`https://cdn.jsdelivr.net/npm/d3@${"6.7.0"}`, `https://cdn.jsdelivr.net/npm/markmap-view@${"0.13.3-alpha.2+a5a159b"}`].map(src => ({
type: 'script',

@@ -54,2 +54,45 @@ data: {

var options$1 = {
preloadScripts: [{
type: 'script',
data: {
src: `https://cdn.jsdelivr.net/npm/katex@${"0.15.3"}/dist/katex.min.js`
}
}],
scripts: [{
type: 'iife',
data: {
fn: getMarkmap => {
window.WebFontConfig = {
custom: {
families: ['KaTeX_AMS', 'KaTeX_Caligraphic:n4,n7', 'KaTeX_Fraktur:n4,n7', 'KaTeX_Main:n4,n7,i4,i7', 'KaTeX_Math:i4,i7', 'KaTeX_Script', 'KaTeX_SansSerif:n4,n7,i4', 'KaTeX_Size1', 'KaTeX_Size2', 'KaTeX_Size3', 'KaTeX_Size4', 'KaTeX_Typewriter']
},
active: () => {
getMarkmap().refreshHook.call();
}
};
},
getParams({
getMarkmap
}) {
return [getMarkmap];
}
}
}, {
type: 'script',
data: {
src: `https://cdn.jsdelivr.net/npm/webfontloader@${"1.6.28"}/webfontloader.js`,
defer: true
}
}],
styles: [{
type: 'stylesheet',
data: {
href: `https://cdn.jsdelivr.net/npm/katex@${"0.15.3"}/dist/katex.min.css`
}
}]
};
const name$2 = 'katex';

@@ -73,36 +116,4 @@ function transform$2(transformHooks) {

return {
styles: [{
type: 'stylesheet',
data: {
href: 'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css'
}
}],
scripts: [{
type: 'iife',
data: {
fn: getMarkmap => {
window.WebFontConfig = {
custom: {
families: ['KaTeX_AMS', 'KaTeX_Caligraphic:n4,n7', 'KaTeX_Fraktur:n4,n7', 'KaTeX_Main:n4,n7,i4,i7', 'KaTeX_Math:i4,i7', 'KaTeX_Script', 'KaTeX_SansSerif:n4,n7,i4', 'KaTeX_Size1', 'KaTeX_Size2', 'KaTeX_Size3', 'KaTeX_Size4', 'KaTeX_Typewriter']
},
active: () => {
getMarkmap().refreshHook.call();
}
};
},
getParams({
getMarkmap
}) {
return [getMarkmap];
}
}
}, {
type: 'script',
data: {
src: 'https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.js',
defer: true
}
}]
styles: options$1.styles,
scripts: options$1.scripts
};

@@ -117,2 +128,22 @@ }

var options = {
preloadScripts: [{
type: 'script',
data: {
src: `https://cdn.jsdelivr.net/npm/prismjs@${"1.28.0"}/components/prism-core.min.js`
}
}, {
type: 'script',
data: {
src: `https://cdn.jsdelivr.net/npm/prismjs@${"1.28.0"}/plugins/autoloader/prism-autoloader.min.js`
}
}],
styles: [{
type: 'stylesheet',
data: {
href: `https://cdn.jsdelivr.net/npm/prismjs@${"1.28.0"}/themes/prism.css`
}
}]
};
const name$1 = 'prism';

@@ -147,8 +178,3 @@ function transform$1(transformHooks) {

return {
styles: [{
type: 'stylesheet',
data: {
href: `https://cdn.jsdelivr.net/npm/prismjs@${"1.25.0"}/themes/prism.css`
}
}]
styles: options.styles
};

@@ -155,0 +181,0 @@ }

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

/*! markmap-lib v0.13.3-alpha.1+f7f5075 | MIT License */
/*! markmap-lib v0.13.3-alpha.2+a5a159b | MIT License */
'use strict';

@@ -21,3 +21,3 @@

const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n";
const BASE_JS = [`https://cdn.jsdelivr.net/npm/d3@${"6.7.0"}`, `https://cdn.jsdelivr.net/npm/markmap-view@${"0.13.3-alpha.1+f7f5075"}`].map(src => ({
const BASE_JS = [`https://cdn.jsdelivr.net/npm/d3@${"6.7.0"}`, `https://cdn.jsdelivr.net/npm/markmap-view@${"0.13.3-alpha.2+a5a159b"}`].map(src => ({
type: 'script',

@@ -64,2 +64,45 @@ data: {

var options$1 = {
preloadScripts: [{
type: 'script',
data: {
src: `https://cdn.jsdelivr.net/npm/katex@${"0.15.3"}/dist/katex.min.js`
}
}],
scripts: [{
type: 'iife',
data: {
fn: getMarkmap => {
window.WebFontConfig = {
custom: {
families: ['KaTeX_AMS', 'KaTeX_Caligraphic:n4,n7', 'KaTeX_Fraktur:n4,n7', 'KaTeX_Main:n4,n7,i4,i7', 'KaTeX_Math:i4,i7', 'KaTeX_Script', 'KaTeX_SansSerif:n4,n7,i4', 'KaTeX_Size1', 'KaTeX_Size2', 'KaTeX_Size3', 'KaTeX_Size4', 'KaTeX_Typewriter']
},
active: () => {
getMarkmap().refreshHook.call();
}
};
},
getParams({
getMarkmap
}) {
return [getMarkmap];
}
}
}, {
type: 'script',
data: {
src: `https://cdn.jsdelivr.net/npm/webfontloader@${"1.6.28"}/webfontloader.js`,
defer: true
}
}],
styles: [{
type: 'stylesheet',
data: {
href: `https://cdn.jsdelivr.net/npm/katex@${"0.15.3"}/dist/katex.min.css`
}
}]
};
const name$2 = 'katex';

@@ -83,36 +126,4 @@ function transform$2(transformHooks) {

return {
styles: [{
type: 'stylesheet',
data: {
href: 'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css'
}
}],
scripts: [{
type: 'iife',
data: {
fn: getMarkmap => {
window.WebFontConfig = {
custom: {
families: ['KaTeX_AMS', 'KaTeX_Caligraphic:n4,n7', 'KaTeX_Fraktur:n4,n7', 'KaTeX_Main:n4,n7,i4,i7', 'KaTeX_Math:i4,i7', 'KaTeX_Script', 'KaTeX_SansSerif:n4,n7,i4', 'KaTeX_Size1', 'KaTeX_Size2', 'KaTeX_Size3', 'KaTeX_Size4', 'KaTeX_Typewriter']
},
active: () => {
getMarkmap().refreshHook.call();
}
};
},
getParams({
getMarkmap
}) {
return [getMarkmap];
}
}
}, {
type: 'script',
data: {
src: 'https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.js',
defer: true
}
}]
styles: options$1.styles,
scripts: options$1.scripts
};

@@ -127,2 +138,22 @@ }

var options = {
preloadScripts: [{
type: 'script',
data: {
src: `https://cdn.jsdelivr.net/npm/prismjs@${"1.28.0"}/components/prism-core.min.js`
}
}, {
type: 'script',
data: {
src: `https://cdn.jsdelivr.net/npm/prismjs@${"1.28.0"}/plugins/autoloader/prism-autoloader.min.js`
}
}],
styles: [{
type: 'stylesheet',
data: {
href: `https://cdn.jsdelivr.net/npm/prismjs@${"1.28.0"}/themes/prism.css`
}
}]
};
const name$1 = 'prism';

@@ -157,8 +188,3 @@ function transform$1(transformHooks) {

return {
styles: [{
type: 'stylesheet',
data: {
href: `https://cdn.jsdelivr.net/npm/prismjs@${"1.25.0"}/themes/prism.css`
}
}]
styles: options.styles
};

@@ -165,0 +191,0 @@ }

{
"name": "markmap-lib",
"version": "0.13.3-alpha.1+f7f5075",
"version": "0.13.3-alpha.2+a5a159b",
"description": "Visualize your Markdown as mindmaps with Markmap",

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

"@types/remarkable": "^2.0.3",
"markmap-view": "^0.13.3-alpha.1+f7f5075"
"markmap-view": "^0.13.3-alpha.2+a5a159b",
"webfontloader": "^1.6.28"
},

@@ -45,3 +46,3 @@ "dependencies": {

"katex": "^0.15.1",
"markmap-common": "^0.13.3-alpha.1+f7f5075",
"markmap-common": "^0.13.3-alpha.2+a5a159b",
"prismjs": "^1.25.0",

@@ -51,3 +52,3 @@ "remarkable": "^2.0.1",

},
"gitHead": "f7f507547a2e1b2b1637e532a1c67d6ad0eabaf9"
"gitHead": "a5a159bee156ba7c77cf952f6f0f3e450f8c12fa"
}
import { IAssets, ITransformHooks } from '../types';
import options from './katex.options';
export { options };
export declare const name = "katex";
export declare function transform(transformHooks: ITransformHooks): IAssets;
import { IAssets, ITransformHooks } from '../types';
import options from './prism.options';
export { options };
export declare const name = "prism";
export declare function transform(transformHooks: ITransformHooks): IAssets;

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

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

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