@readme/markdown 11.0.0 → 11.1.1
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 -0
- package/dist/main.js +4 -2
- package/dist/main.node.js +4 -2
- package/dist/main.node.js.map +1 -1
- package/dist/processor/transform/gemoji+.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export { compile, exports, hast, run, mdast, mdastV6, mdx, migrate, plain, remar
|
|
|
10
10
|
export { default as Owlmoji } from './lib/owlmoji';
|
|
11
11
|
export { Components, utils };
|
|
12
12
|
export { tailwindCompiler } from './utils/tailwind-compiler';
|
|
13
|
+
export { regex as gemojiRegex } from './processor/transform/gemoji+';
|
package/dist/main.js
CHANGED
|
@@ -8682,6 +8682,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
8682
8682
|
Owlmoji: () => (/* reexport */ Owlmoji),
|
|
8683
8683
|
compile: () => (/* reexport */ lib_compile),
|
|
8684
8684
|
exports: () => (/* reexport */ lib_exports),
|
|
8685
|
+
gemojiRegex: () => (/* reexport */ gemoji_regex),
|
|
8685
8686
|
hast: () => (/* reexport */ lib_hast),
|
|
8686
8687
|
mdast: () => (/* reexport */ lib_mdast),
|
|
8687
8688
|
mdastV6: () => (/* reexport */ lib_mdastV6),
|
|
@@ -67633,7 +67634,7 @@ const readmeToMdx = () => tree => {
|
|
|
67633
67634
|
return;
|
|
67634
67635
|
if ('url' in image)
|
|
67635
67636
|
image.data.hProperties.src = image.url;
|
|
67636
|
-
const attributes = toAttributes(image.data.hProperties, imageAttrs);
|
|
67637
|
+
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
|
|
67637
67638
|
if (image.data.hProperties.className === 'emoji') {
|
|
67638
67639
|
parent.children.splice(index, 1, {
|
|
67639
67640
|
type: NodeTypes.emoji,
|
|
@@ -67651,7 +67652,7 @@ const readmeToMdx = () => tree => {
|
|
|
67651
67652
|
}
|
|
67652
67653
|
});
|
|
67653
67654
|
visit(tree, NodeTypes.imageBlock, (image, index, parent) => {
|
|
67654
|
-
const attributes = toAttributes(image.data.hProperties, imageAttrs);
|
|
67655
|
+
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
|
|
67655
67656
|
if (hasExtra(attributes)) {
|
|
67656
67657
|
parent.children.splice(index, 1, {
|
|
67657
67658
|
type: 'mdxJsxFlowElement',
|
|
@@ -87932,6 +87933,7 @@ const utils = {
|
|
|
87932
87933
|
|
|
87933
87934
|
|
|
87934
87935
|
|
|
87936
|
+
|
|
87935
87937
|
})();
|
|
87936
87938
|
|
|
87937
87939
|
/******/ return __webpack_exports__;
|
package/dist/main.node.js
CHANGED
|
@@ -16343,6 +16343,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
16343
16343
|
Owlmoji: () => (/* reexport */ Owlmoji),
|
|
16344
16344
|
compile: () => (/* reexport */ lib_compile),
|
|
16345
16345
|
exports: () => (/* reexport */ lib_exports),
|
|
16346
|
+
gemojiRegex: () => (/* reexport */ gemoji_regex),
|
|
16346
16347
|
hast: () => (/* reexport */ lib_hast),
|
|
16347
16348
|
mdast: () => (/* reexport */ lib_mdast),
|
|
16348
16349
|
mdastV6: () => (/* reexport */ lib_mdastV6),
|
|
@@ -87836,7 +87837,7 @@ const readmeToMdx = () => tree => {
|
|
|
87836
87837
|
return;
|
|
87837
87838
|
if ('url' in image)
|
|
87838
87839
|
image.data.hProperties.src = image.url;
|
|
87839
|
-
const attributes = toAttributes(image.data.hProperties, imageAttrs);
|
|
87840
|
+
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
|
|
87840
87841
|
if (image.data.hProperties.className === 'emoji') {
|
|
87841
87842
|
parent.children.splice(index, 1, {
|
|
87842
87843
|
type: NodeTypes.emoji,
|
|
@@ -87854,7 +87855,7 @@ const readmeToMdx = () => tree => {
|
|
|
87854
87855
|
}
|
|
87855
87856
|
});
|
|
87856
87857
|
visit(tree, NodeTypes.imageBlock, (image, index, parent) => {
|
|
87857
|
-
const attributes = toAttributes(image.data.hProperties, imageAttrs);
|
|
87858
|
+
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
|
|
87858
87859
|
if (hasExtra(attributes)) {
|
|
87859
87860
|
parent.children.splice(index, 1, {
|
|
87860
87861
|
type: 'mdxJsxFlowElement',
|
|
@@ -108135,6 +108136,7 @@ const utils = {
|
|
|
108135
108136
|
|
|
108136
108137
|
|
|
108137
108138
|
|
|
108139
|
+
|
|
108138
108140
|
})();
|
|
108139
108141
|
|
|
108140
108142
|
module.exports = __webpack_exports__;
|