@readme/markdown 11.9.4 → 11.10.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/index.d.ts +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/mdxishTags.d.ts +2 -0
- package/dist/main.js +27 -4
- package/dist/main.node.js +23 -0
- package/dist/main.node.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const utils: {
|
|
|
6
6
|
getHref: typeof getHref;
|
|
7
7
|
calloutIcons: {};
|
|
8
8
|
};
|
|
9
|
-
export { compile, exports, hast, run, mdast, mdastV6, mdx, mdxish, migrate, mix, plain, renderMdxish, remarkPlugins, stripComments, tags, } from './lib';
|
|
9
|
+
export { compile, exports, hast, run, mdast, mdastV6, mdx, mdxish, mdxishTags, migrate, mix, plain, renderMdxish, remarkPlugins, stripComments, tags, } from './lib';
|
|
10
10
|
export { default as Owlmoji } from './lib/owlmoji';
|
|
11
11
|
export { Components, utils };
|
|
12
12
|
export { tailwindCompiler } from './utils/tailwind-compiler';
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -15,4 +15,5 @@ export { default as renderMdxish } from './renderMdxish';
|
|
|
15
15
|
export type { RenderMdxishOpts } from './renderMdxish';
|
|
16
16
|
export { default as run } from './run';
|
|
17
17
|
export { default as tags } from './tags';
|
|
18
|
+
export { default as mdxishTags } from './mdxishTags';
|
|
18
19
|
export { default as stripComments } from './stripComments';
|
package/dist/main.js
CHANGED
|
@@ -2030,7 +2030,7 @@ module.exports = function (it) {
|
|
|
2030
2030
|
|
|
2031
2031
|
"use strict";
|
|
2032
2032
|
|
|
2033
|
-
var create = __webpack_require__(
|
|
2033
|
+
var create = __webpack_require__(7100);
|
|
2034
2034
|
var descriptor = __webpack_require__(1996);
|
|
2035
2035
|
var setToStringTag = __webpack_require__(3844);
|
|
2036
2036
|
var IteratorPrototype = {};
|
|
@@ -2209,7 +2209,7 @@ var meta = module.exports = {
|
|
|
2209
2209
|
|
|
2210
2210
|
/***/ }),
|
|
2211
2211
|
|
|
2212
|
-
/***/
|
|
2212
|
+
/***/ 7100:
|
|
2213
2213
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2214
2214
|
|
|
2215
2215
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
@@ -2940,7 +2940,7 @@ var $Number = global[NUMBER];
|
|
|
2940
2940
|
var Base = $Number;
|
|
2941
2941
|
var proto = $Number.prototype;
|
|
2942
2942
|
// Opera ~12 has broken Object#toString
|
|
2943
|
-
var BROKEN_COF = cof(__webpack_require__(
|
|
2943
|
+
var BROKEN_COF = cof(__webpack_require__(7100)(proto)) == NUMBER;
|
|
2944
2944
|
var TRIM = 'trim' in String.prototype;
|
|
2945
2945
|
|
|
2946
2946
|
// 7.1.3 ToNumber(argument)
|
|
@@ -3139,7 +3139,7 @@ var toObject = __webpack_require__(8270);
|
|
|
3139
3139
|
var toIObject = __webpack_require__(7221);
|
|
3140
3140
|
var toPrimitive = __webpack_require__(3048);
|
|
3141
3141
|
var createDesc = __webpack_require__(1996);
|
|
3142
|
-
var _create = __webpack_require__(
|
|
3142
|
+
var _create = __webpack_require__(7100);
|
|
3143
3143
|
var gOPNExt = __webpack_require__(4765);
|
|
3144
3144
|
var $GOPD = __webpack_require__(8641);
|
|
3145
3145
|
var $GOPS = __webpack_require__(1060);
|
|
@@ -11366,6 +11366,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
11366
11366
|
mdastV6: () => (/* reexport */ lib_mdastV6),
|
|
11367
11367
|
mdx: () => (/* reexport */ lib_mdx),
|
|
11368
11368
|
mdxish: () => (/* reexport */ lib_mdxish),
|
|
11369
|
+
mdxishTags: () => (/* reexport */ mdxishTags),
|
|
11369
11370
|
migrate: () => (/* reexport */ lib_migrate),
|
|
11370
11371
|
mix: () => (/* reexport */ lib_mix),
|
|
11371
11372
|
plain: () => (/* reexport */ lib_plain),
|
|
@@ -94587,6 +94588,27 @@ const tags = (doc) => {
|
|
|
94587
94588
|
};
|
|
94588
94589
|
/* harmony default export */ const lib_tags = (tags);
|
|
94589
94590
|
|
|
94591
|
+
;// ./lib/mdxishTags.ts
|
|
94592
|
+
|
|
94593
|
+
|
|
94594
|
+
|
|
94595
|
+
|
|
94596
|
+
|
|
94597
|
+
const mdxishTags_tags = (doc) => {
|
|
94598
|
+
const { replaced: sanitizedDoc } = extractMagicBlocks(doc);
|
|
94599
|
+
const set = new Set();
|
|
94600
|
+
const processor = remark()
|
|
94601
|
+
.use(mdxish_component_blocks);
|
|
94602
|
+
const tree = processor.parse(sanitizedDoc);
|
|
94603
|
+
visit(processor.runSync(tree), isMDXElement, (node) => {
|
|
94604
|
+
if (node.name?.match(/^[A-Z]/)) {
|
|
94605
|
+
set.add(node.name);
|
|
94606
|
+
}
|
|
94607
|
+
});
|
|
94608
|
+
return Array.from(set);
|
|
94609
|
+
};
|
|
94610
|
+
/* harmony default export */ const mdxishTags = (mdxishTags_tags);
|
|
94611
|
+
|
|
94590
94612
|
;// ./processor/transform/stripComments.ts
|
|
94591
94613
|
|
|
94592
94614
|
const HTML_COMMENT_REGEX = /<!--[\s\S]*?-->/g;
|
|
@@ -94690,6 +94712,7 @@ async function stripComments(doc, { mdx } = {}) {
|
|
|
94690
94712
|
|
|
94691
94713
|
|
|
94692
94714
|
|
|
94715
|
+
|
|
94693
94716
|
;// ./index.tsx
|
|
94694
94717
|
|
|
94695
94718
|
|
package/dist/main.node.js
CHANGED
|
@@ -19028,6 +19028,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
19028
19028
|
mdastV6: () => (/* reexport */ lib_mdastV6),
|
|
19029
19029
|
mdx: () => (/* reexport */ lib_mdx),
|
|
19030
19030
|
mdxish: () => (/* reexport */ lib_mdxish),
|
|
19031
|
+
mdxishTags: () => (/* reexport */ mdxishTags),
|
|
19031
19032
|
migrate: () => (/* reexport */ lib_migrate),
|
|
19032
19033
|
mix: () => (/* reexport */ lib_mix),
|
|
19033
19034
|
plain: () => (/* reexport */ lib_plain),
|
|
@@ -114791,6 +114792,27 @@ const tags = (doc) => {
|
|
|
114791
114792
|
};
|
|
114792
114793
|
/* harmony default export */ const lib_tags = (tags);
|
|
114793
114794
|
|
|
114795
|
+
;// ./lib/mdxishTags.ts
|
|
114796
|
+
|
|
114797
|
+
|
|
114798
|
+
|
|
114799
|
+
|
|
114800
|
+
|
|
114801
|
+
const mdxishTags_tags = (doc) => {
|
|
114802
|
+
const { replaced: sanitizedDoc } = extractMagicBlocks(doc);
|
|
114803
|
+
const set = new Set();
|
|
114804
|
+
const processor = remark()
|
|
114805
|
+
.use(mdxish_component_blocks);
|
|
114806
|
+
const tree = processor.parse(sanitizedDoc);
|
|
114807
|
+
visit(processor.runSync(tree), isMDXElement, (node) => {
|
|
114808
|
+
if (node.name?.match(/^[A-Z]/)) {
|
|
114809
|
+
set.add(node.name);
|
|
114810
|
+
}
|
|
114811
|
+
});
|
|
114812
|
+
return Array.from(set);
|
|
114813
|
+
};
|
|
114814
|
+
/* harmony default export */ const mdxishTags = (mdxishTags_tags);
|
|
114815
|
+
|
|
114794
114816
|
;// ./processor/transform/stripComments.ts
|
|
114795
114817
|
|
|
114796
114818
|
const HTML_COMMENT_REGEX = /<!--[\s\S]*?-->/g;
|
|
@@ -114894,6 +114916,7 @@ async function stripComments(doc, { mdx } = {}) {
|
|
|
114894
114916
|
|
|
114895
114917
|
|
|
114896
114918
|
|
|
114919
|
+
|
|
114897
114920
|
;// ./index.tsx
|
|
114898
114921
|
|
|
114899
114922
|
|