mark-deco 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apply-title-from-h1.d.ts +2 -2
- package/dist/cache/filesystem.d.ts +2 -2
- package/dist/cache/index.d.ts +2 -2
- package/dist/cache/localstorage.d.ts +2 -2
- package/dist/cache/memory.d.ts +2 -2
- package/dist/fetcher.d.ts +2 -2
- package/dist/frontmatter.d.ts +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{internal-CyLf29uZ.js → internal-C5sOXLgo.js} +3 -3
- package/dist/{internal-CyLf29uZ.js.map → internal-C5sOXLgo.js.map} +1 -1
- package/dist/{internal-B9A_9mrC.cjs → internal-vytMjdyC.cjs} +3 -3
- package/dist/{internal-B9A_9mrC.cjs.map → internal-vytMjdyC.cjs.map} +1 -1
- package/dist/internal.cjs +3 -3
- package/dist/internal.d.ts +2 -2
- package/dist/internal.mjs +3 -3
- package/dist/logger.d.ts +2 -2
- package/dist/plugins/card/amazon-rules.d.ts +2 -2
- package/dist/plugins/card/fetcher.d.ts +2 -2
- package/dist/plugins/card/html-generator.d.ts +2 -2
- package/dist/plugins/card/index.d.ts +2 -2
- package/dist/plugins/card/ogp-rules.d.ts +2 -2
- package/dist/plugins/card/rule-engine.d.ts +2 -2
- package/dist/plugins/card/types.d.ts +2 -2
- package/dist/plugins/card/utils.d.ts +2 -2
- package/dist/plugins/card-plugin.d.ts +2 -2
- package/dist/plugins/mermaid/index.d.ts +2 -2
- package/dist/plugins/mermaid/types.d.ts +2 -2
- package/dist/plugins/mermaid-plugin.d.ts +2 -2
- package/dist/plugins/oembed/fetcher.d.ts +2 -2
- package/dist/plugins/oembed/html-generator.d.ts +2 -2
- package/dist/plugins/oembed/index.d.ts +2 -2
- package/dist/plugins/oembed/providers.d.ts +2 -2
- package/dist/plugins/oembed/providers.json.d.ts +2 -2
- package/dist/plugins/oembed/redirect-resolver.d.ts +2 -2
- package/dist/plugins/oembed/types.d.ts +2 -2
- package/dist/plugins/oembed/utils.d.ts +2 -2
- package/dist/plugins/oembed-plugin.d.ts +2 -2
- package/dist/plugins/remark-apply-title-from-h1.d.ts +2 -2
- package/dist/plugins/remark-attr.d.ts +2 -2
- package/dist/plugins/responsive-images.d.ts +2 -2
- package/dist/plugins/shared/error-formatter.d.ts +2 -2
- package/dist/processor.d.ts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/utils/heading.d.ts +2 -2
- package/dist/utils/responsive-image.d.ts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +9 -9
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { FrontmatterData, HeaderTitleTransform } from './types.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { CacheStorage } from './index.js';
|
package/dist/cache/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { CacheStorage } from './index.js';
|
package/dist/cache/memory.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { CacheStorage } from './index.js';
|
package/dist/fetcher.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { CacheStorage } from './cache/index.js';
|
package/dist/frontmatter.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { FrontmatterData } from './types.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
9
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const de=require("js-beautify"),fe=require("rehype-stringify"),ue=require("remark-gfm"),se=require("remark-parse"),pe=require("remark-rehype"),oe=require("unified"),W=require("unist-util-visit"),G=require("js-yaml"),E=require("./internal-
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const de=require("js-beautify"),fe=require("rehype-stringify"),ue=require("remark-gfm"),se=require("remark-parse"),pe=require("remark-rehype"),oe=require("unified"),W=require("unist-util-visit"),G=require("js-yaml"),E=require("./internal-vytMjdyC.cjs");function Z(t){const e=/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/,n=t.match(e);if(!n)return{data:{},content:t};const o=n[1]||"",r=t.slice(n[0].length);try{const s=G.load(o,{schema:G.JSON_SCHEMA});return{data:s&&typeof s=="object"&&!Array.isArray(s)?s:{},content:r}}catch(s){const d=s instanceof Error?s.message:"Unknown YAML parsing error";throw new Error(`Failed to parse frontmatter YAML: ${d}`)}}function me(t){if(!t||Object.keys(t).length===0)return"";const e=G.dump(t,{lineWidth:0});return typeof e!="string"||e.length===0?"":e.endsWith(`
|
|
10
10
|
`)?e:`${e}
|
|
11
11
|
`}function X(t,e){const n=e??"";return`${`---
|
|
12
12
|
${me(t)}---
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
export * from './types.js';
|
|
11
12
|
export { createMarkdownProcessor, defaultHtmlOptions } from './processor.js';
|
|
12
13
|
export { createOEmbedPlugin } from './plugins/oembed-plugin.js';
|
|
13
14
|
export { createCardPlugin } from './plugins/card-plugin.js';
|
|
@@ -19,6 +20,5 @@ export type { CachedFetcherOptions } from './fetcher.js';
|
|
|
19
20
|
export { createMemoryCacheStorage, createLocalCacheStorage, createFileSystemCacheStorage, generateCacheKey, } from './cache/index.js';
|
|
20
21
|
export type { CacheStorage } from './cache/index.js';
|
|
21
22
|
export { getNoOpLogger, getConsoleLogger } from './logger.js';
|
|
22
|
-
export type { Plugin, PluginContext, MarkdownProcessor, ProcessOptions, ProcessResult, ProcessResultWithFrontmatterTransform, HeaderTitleTransform, FrontmatterData, FrontmatterPreTransform, FrontmatterPreTransformContext, FrontmatterTransformResult, FrontmatterPostTransform, FrontmatterPostTransformContext, Logger, LogLevel, FetcherType, } from './types.js';
|
|
23
23
|
export type { OEmbedProvider } from './plugins/oembed/types.js';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAMA,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGhF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxE,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGzD,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG9D,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAMA,cAAc,YAAY,CAAC;AAG3B,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGhF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxE,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGzD,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG9D,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -6,16 +6,16 @@ import ue from "remark-rehype";
|
|
|
6
6
|
import { unified as oe } from "unified";
|
|
7
7
|
import { visit as q } from "unist-util-visit";
|
|
8
8
|
import { load as pe, JSON_SCHEMA as me, dump as ge } from "js-yaml";
|
|
9
|
-
import { g as ye, a as we, e as ve, i as be, f as Ee, b as ke, c as ie, d as V, h as Se, j as $e, k as xe, l as Z, m as ce } from "./internal-
|
|
10
|
-
import { n as ht, p as ft, o as dt } from "./internal-
|
|
9
|
+
import { g as ye, a as we, e as ve, i as be, f as Ee, b as ke, c as ie, d as V, h as Se, j as $e, k as xe, l as Z, m as ce } from "./internal-C5sOXLgo.js";
|
|
10
|
+
import { n as ht, p as ft, o as dt } from "./internal-C5sOXLgo.js";
|
|
11
11
|
/*!
|
|
12
12
|
* name: mark-deco
|
|
13
|
-
* version: 0.
|
|
13
|
+
* version: 0.16.0
|
|
14
14
|
* description: Flexible Markdown to HTML conversion library
|
|
15
15
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
16
16
|
* license: MIT
|
|
17
17
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
18
|
-
* git.commit.hash:
|
|
18
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
19
19
|
*/
|
|
20
20
|
function X(t) {
|
|
21
21
|
const e = /^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/, n = t.match(e);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: mark-deco
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.16.0
|
|
4
4
|
* description: Flexible Markdown to HTML conversion library
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/mark-deco.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 2349c97b2136b454168e4ae633590d11307952c5
|
|
9
9
|
*/
|
|
10
10
|
const qd = (e) => {
|
|
11
11
|
try {
|
|
@@ -11177,4 +11177,4 @@ export {
|
|
|
11177
11177
|
fr as w,
|
|
11178
11178
|
Fd as x
|
|
11179
11179
|
};
|
|
11180
|
-
//# sourceMappingURL=internal-
|
|
11180
|
+
//# sourceMappingURL=internal-C5sOXLgo.js.map
|