@vaneui/md 0.0.3-alpha.20250730171352.3f6fc8f → 0.0.3-alpha.20250803114402.e1ef256

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.
Files changed (66) hide show
  1. package/dist/components/blocks/MdBlockquote.d.ts +2 -0
  2. package/dist/components/blocks/MdHr.d.ts +2 -0
  3. package/dist/components/breaks/MdHardbreak.d.ts +2 -0
  4. package/dist/components/breaks/MdSoftbreak.d.ts +2 -0
  5. package/dist/components/code/MdFence.d.ts +2 -0
  6. package/dist/components/errors/MdError.d.ts +2 -0
  7. package/dist/components/headings/MdHeading.d.ts +2 -0
  8. package/dist/components/links/MdLink.d.ts +2 -0
  9. package/dist/components/lists/MdItem.d.ts +2 -0
  10. package/dist/components/lists/MdList.d.ts +2 -0
  11. package/dist/components/md-components.d.ts +25 -0
  12. package/dist/components/md.d.ts +2 -6
  13. package/dist/components/media/MdImage.d.ts +2 -0
  14. package/dist/components/structure/MdDocument.d.ts +2 -0
  15. package/dist/components/structure/MdInline.d.ts +2 -0
  16. package/dist/components/tables/MdTable.d.ts +2 -0
  17. package/dist/components/tables/MdTbody.d.ts +2 -0
  18. package/dist/components/tables/MdTd.d.ts +2 -0
  19. package/dist/components/tables/MdTh.d.ts +2 -0
  20. package/dist/components/tables/MdThead.d.ts +2 -0
  21. package/dist/components/tables/MdTr.d.ts +2 -0
  22. package/dist/components/text/MdCode.d.ts +2 -0
  23. package/dist/components/text/MdEm.d.ts +2 -0
  24. package/dist/components/text/MdParagraph.d.ts +2 -0
  25. package/dist/components/text/MdS.d.ts +2 -0
  26. package/dist/components/text/MdStrong.d.ts +2 -0
  27. package/dist/components/text/MdText.d.ts +2 -0
  28. package/dist/config/default-config.d.ts +3 -0
  29. package/dist/index.d.ts +4 -1
  30. package/dist/index.esm.js +285 -54
  31. package/dist/index.esm.js.map +1 -1
  32. package/dist/index.js +310 -52
  33. package/dist/index.js.map +1 -1
  34. package/dist/styles/index.css +2425 -0
  35. package/dist/tests/components/MdBlockquote.test.d.ts +1 -0
  36. package/dist/tests/components/MdCode.test.d.ts +1 -0
  37. package/dist/tests/components/MdDocument.test.d.ts +1 -0
  38. package/dist/tests/components/MdEm.test.d.ts +1 -0
  39. package/dist/tests/components/MdError.test.d.ts +1 -0
  40. package/dist/tests/components/MdFence.test.d.ts +1 -0
  41. package/dist/tests/components/MdHardbreak.test.d.ts +1 -0
  42. package/dist/tests/components/MdHeading.test.d.ts +1 -0
  43. package/dist/tests/components/MdHr.test.d.ts +1 -0
  44. package/dist/tests/components/MdImage.test.d.ts +1 -0
  45. package/dist/tests/components/MdInline.test.d.ts +1 -0
  46. package/dist/tests/components/MdItem.test.d.ts +1 -0
  47. package/dist/tests/components/MdLink.test.d.ts +1 -0
  48. package/dist/tests/components/MdList.test.d.ts +1 -0
  49. package/dist/tests/components/MdParagraph.test.d.ts +1 -0
  50. package/dist/tests/components/MdS.test.d.ts +1 -0
  51. package/dist/tests/components/MdSoftbreak.test.d.ts +1 -0
  52. package/dist/tests/components/MdStrong.test.d.ts +1 -0
  53. package/dist/tests/components/MdTable.test.d.ts +1 -0
  54. package/dist/tests/components/MdTbody.test.d.ts +1 -0
  55. package/dist/tests/components/MdTd.test.d.ts +1 -0
  56. package/dist/tests/components/MdText.test.d.ts +1 -0
  57. package/dist/tests/components/MdTh.test.d.ts +1 -0
  58. package/dist/tests/components/MdThead.test.d.ts +1 -0
  59. package/dist/tests/components/MdTr.test.d.ts +1 -0
  60. package/dist/tests/md-nodes.test.d.ts +1 -0
  61. package/dist/types/index.d.ts +79 -0
  62. package/package.json +17 -9
  63. /package/dist/{components/tests → tests}/md.test.d.ts +0 -0
  64. /package/dist/{components/tests → tests}/md.theme-defaults.test.d.ts +0 -0
  65. /package/dist/{components/tests → tests}/md.theme-override.test.d.ts +0 -0
  66. /package/dist/{components/tests → tests}/md.theme-structure.test.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdBlockquote: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdHr: React.FC<unknown>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdHardbreak: React.FC<unknown>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdSoftbreak: React.FC<unknown>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdFence: React.FC<unknown>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdError: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdHeading: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdLink: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdItem: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdList: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,25 @@
1
+ export { MdDocument } from './structure/MdDocument';
2
+ export { MdInline } from './structure/MdInline';
3
+ export { MdHeading } from './headings/MdHeading';
4
+ export { MdParagraph } from './text/MdParagraph';
5
+ export { MdText } from './text/MdText';
6
+ export { MdStrong } from './text/MdStrong';
7
+ export { MdEm } from './text/MdEm';
8
+ export { MdS } from './text/MdS';
9
+ export { MdCode } from './text/MdCode';
10
+ export { MdLink } from './links/MdLink';
11
+ export { MdImage } from './media/MdImage';
12
+ export { MdList } from './lists/MdList';
13
+ export { MdItem } from './lists/MdItem';
14
+ export { MdBlockquote } from './blocks/MdBlockquote';
15
+ export { MdHr } from './blocks/MdHr';
16
+ export { MdFence } from './code/MdFence';
17
+ export { MdTable } from './tables/MdTable';
18
+ export { MdThead } from './tables/MdThead';
19
+ export { MdTbody } from './tables/MdTbody';
20
+ export { MdTr } from './tables/MdTr';
21
+ export { MdTd } from './tables/MdTd';
22
+ export { MdTh } from './tables/MdTh';
23
+ export { MdHardbreak } from './breaks/MdHardbreak';
24
+ export { MdSoftbreak } from './breaks/MdSoftbreak';
25
+ export { MdError } from './errors/MdError';
@@ -1,7 +1,3 @@
1
1
  import React from "react";
2
- export declare const Md: React.FC<{
3
- content: string;
4
- frontmatter?: {
5
- [key: string]: unknown;
6
- };
7
- }>;
2
+ import { MdProps } from "../types";
3
+ export declare const Md: React.FC<MdProps>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdImage: React.FC<unknown>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdDocument: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdInline: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdTable: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdTbody: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdTd: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdTh: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdThead: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdTr: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdCode: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdEm: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdParagraph: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdS: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdStrong: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MdText: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,3 @@
1
+ import { MdNodesConfig, MdComponents } from "../types";
2
+ export declare const defaultNodesConfig: MdNodesConfig;
3
+ export declare const defaultComponents: MdComponents;
package/dist/index.d.ts CHANGED
@@ -1 +1,4 @@
1
- export { Md } from './components/md';
1
+ export { Md } from "./components/md";
2
+ export * from "./components/md-components";
3
+ export { defaultNodesConfig, defaultComponents } from "./config/default-config";
4
+ export * from "./types";
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { List, Link, Col, Title } from '@vaneui/ui';
3
1
  import React from 'react';
2
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
+ import { Col, Title, Text, Badge, Link, List, ListItem, Card, Divider } from '@vaneui/ui';
4
4
 
5
5
  var __create = Object.create;
6
6
  var __defProp = Object.defineProperty;
@@ -8460,7 +8460,7 @@ function validateTree(content, config) {
8460
8460
 
8461
8461
  // index.ts
8462
8462
  var tokenizer = new Tokenizer();
8463
- function mergeConfig(config = {}) {
8463
+ function mergeConfig$1(config = {}) {
8464
8464
  return {
8465
8465
  ...config,
8466
8466
  tags: {
@@ -8488,14 +8488,14 @@ function resolve2(content, config) {
8488
8488
  return content.resolve(config);
8489
8489
  }
8490
8490
  function transform2(nodes, options) {
8491
- const config = mergeConfig(options);
8491
+ const config = mergeConfig$1(options);
8492
8492
  const content = resolve2(nodes, config);
8493
8493
  if (Array.isArray(content))
8494
8494
  return content.flatMap((child) => child.transform(config));
8495
8495
  return content.transform(config);
8496
8496
  }
8497
8497
  function validate(content, options) {
8498
- const config = mergeConfig(options);
8498
+ const config = mergeConfig$1(options);
8499
8499
  return validateTree(content, config);
8500
8500
  }
8501
8501
  function createElement(name, attributes = {}, ...children) {
@@ -8529,8 +8529,17 @@ Markdoc.createElement = createElement;
8529
8529
  Markdoc.truthy = truthy;
8530
8530
  Markdoc.format = format;
8531
8531
 
8532
+ const MdDocument = (props) => {
8533
+ return jsx(Col, { ...props });
8534
+ };
8535
+
8536
+ const MdInline = (props) => {
8537
+ const { children, ...rest } = props;
8538
+ return jsx("span", { ...rest, children: children });
8539
+ };
8540
+
8532
8541
  const MdHeading = (props) => {
8533
- const { level, ...rest } = props;
8542
+ const { level, children, ...rest } = props;
8534
8543
  const tag = `h${level}`;
8535
8544
  let size = {};
8536
8545
  switch (level) {
@@ -8547,66 +8556,288 @@ const MdHeading = (props) => {
8547
8556
  size = { sm: true };
8548
8557
  break;
8549
8558
  case 5:
8559
+ case 6:
8550
8560
  size = { xs: true };
8551
8561
  break;
8552
8562
  }
8553
- return jsx(Title, { ...rest, ...size, tag: tag });
8563
+ return jsx(Title, { ...rest, ...size, tag: tag, children: children });
8564
+ };
8565
+
8566
+ const MdParagraph = (props) => {
8567
+ const { children, ...rest } = props;
8568
+ return jsx(Text, { ...rest, tag: "p", children: children });
8554
8569
  };
8570
+
8571
+ const MdText = (props) => {
8572
+ const { content, children, ...rest } = props;
8573
+ return jsx(Text, { ...rest, tag: "span", children: content || children });
8574
+ };
8575
+
8576
+ const MdStrong = (props) => {
8577
+ const { children, ...rest } = props;
8578
+ return jsx(Text, { ...rest, tag: "strong", bold: true, children: children });
8579
+ };
8580
+
8581
+ const MdEm = (props) => {
8582
+ const { children, ...rest } = props;
8583
+ return jsx(Text, { ...rest, tag: "em", italic: true, children: children });
8584
+ };
8585
+
8586
+ const MdS = (props) => {
8587
+ const { children, ...rest } = props;
8588
+ return jsx(Text, { ...rest, tag: "s", style: { textDecoration: 'line-through' }, children: children });
8589
+ };
8590
+
8591
+ const MdCode = (props) => {
8592
+ const { content, children, ...rest } = props;
8593
+ return jsx(Badge, { ...rest, children: content || children });
8594
+ };
8595
+
8555
8596
  const MdLink = (props) => {
8556
- const { href, title, ...rest } = props;
8557
- return jsx(Link, { link: true, ...rest, href: href, title: title, tag: Link });
8597
+ const { href, title, children, ...rest } = props;
8598
+ return jsx(Link, { ...rest, href: href, title: title, children: children });
8558
8599
  };
8559
- const MdImg = (props) => {
8600
+
8601
+ const MdImage = (props) => {
8560
8602
  const { src, alt, title, ...rest } = props;
8561
- return (jsx("img", { ...rest, title: title, src: src, alt: alt, className: "w-fit rounded-lg" }));
8603
+ return (jsx("img", { ...rest, title: title, src: src, alt: alt || "", style: { display: 'block', maxWidth: '100%', height: 'auto', borderRadius: '0.5rem' } }));
8562
8604
  };
8563
- const MdContainer = (props) => jsx(Col, { ...props });
8564
- const MdList = (props) => jsx(List, { ...props });
8565
- const Md = ({ content, frontmatter }) => {
8566
- const ast = Markdoc.parse(content);
8567
- const config = {
8568
- nodes: {
8569
- document: {
8570
- render: "MdContainer",
8571
- },
8572
- heading: {
8573
- render: "MdHeading",
8574
- attributes: {
8575
- level: { type: Number },
8576
- },
8577
- },
8578
- link: {
8579
- render: "MdLink",
8580
- attributes: {
8581
- href: { type: String },
8582
- title: { type: String },
8583
- },
8584
- },
8585
- list: {
8586
- render: "MdList",
8587
- },
8588
- image: {
8589
- render: "MdImg",
8590
- attributes: {
8591
- src: { type: String },
8592
- alt: { type: String },
8593
- title: { type: String },
8594
- },
8595
- },
8605
+
8606
+ const MdList = (props) => {
8607
+ const { children, ordered, ...rest } = props;
8608
+ // Use the ordered attribute to determine list type
8609
+ const listProps = ordered
8610
+ ? { decimal: true }
8611
+ : { disc: true };
8612
+ return jsx(List, { ...rest, ...listProps, children: children });
8613
+ };
8614
+
8615
+ const MdItem = (props) => {
8616
+ const { children, ...rest } = props;
8617
+ return jsx(ListItem, { ...rest, children: children });
8618
+ };
8619
+
8620
+ const MdBlockquote = (props) => {
8621
+ const { children, ...rest } = props;
8622
+ return (jsx(Card, { ...rest, style: { borderLeft: '4px solid #d1d5db', paddingLeft: '1rem' }, children: children }));
8623
+ };
8624
+
8625
+ const MdHr = (props) => {
8626
+ return jsx(Divider, { ...props });
8627
+ };
8628
+
8629
+ const MdFence = (props) => {
8630
+ const { content, language, ...rest } = props;
8631
+ return (jsx(Card, { ...rest, children: jsx("pre", { style: { margin: 0, fontFamily: 'monospace', fontSize: '0.875rem' }, children: jsx("code", { className: language ? `language-${language}` : "", children: content }) }) }));
8632
+ };
8633
+
8634
+ const MdTable = (props) => {
8635
+ const { children, ...rest } = props;
8636
+ return (jsx(Card, { style: { overflow: 'auto', margin: '1rem 0' }, children: jsx("table", { ...rest, style: { width: '100%', borderCollapse: 'collapse' }, children: children }) }));
8637
+ };
8638
+
8639
+ const MdThead = (props) => {
8640
+ const { children, ...rest } = props;
8641
+ return jsx("thead", { ...rest, children: children });
8642
+ };
8643
+
8644
+ const MdTbody = (props) => {
8645
+ const { children, ...rest } = props;
8646
+ return jsx("tbody", { ...rest, children: children });
8647
+ };
8648
+
8649
+ const MdTr = (props) => {
8650
+ const { children, ...rest } = props;
8651
+ return jsx("tr", { ...rest, children: children });
8652
+ };
8653
+
8654
+ const MdTd = (props) => {
8655
+ const { children, align, colspan, rowspan, ...rest } = props;
8656
+ return (jsx("td", { ...rest, style: { textAlign: align }, colSpan: colspan, rowSpan: rowspan, children: children }));
8657
+ };
8658
+
8659
+ const MdTh = (props) => {
8660
+ const { children, align, width, ...rest } = props;
8661
+ return (jsx("th", { ...rest, style: { textAlign: align, width }, children: children }));
8662
+ };
8663
+
8664
+ const MdHardbreak = () => {
8665
+ return jsx("br", {});
8666
+ };
8667
+
8668
+ const MdSoftbreak = () => {
8669
+ return jsx(Fragment, { children: " " });
8670
+ };
8671
+
8672
+ const MdError = (props) => {
8673
+ const { children, ...rest } = props;
8674
+ return (jsxs(Card, { ...rest, style: { backgroundColor: '#fef2f2', borderColor: '#fecaca', color: '#dc2626', margin: '1rem 0' }, children: [jsx(Text, { bold: true, children: "Error:" }), " ", children] }));
8675
+ };
8676
+
8677
+ // Default node configuration for Markdoc
8678
+ const defaultNodesConfig = {
8679
+ document: {
8680
+ render: "MdDocument",
8681
+ },
8682
+ heading: {
8683
+ render: "MdHeading",
8684
+ attributes: {
8685
+ level: { type: Number, required: true },
8686
+ },
8687
+ },
8688
+ paragraph: {
8689
+ render: "MdParagraph",
8690
+ },
8691
+ hr: {
8692
+ render: "MdHr",
8693
+ },
8694
+ image: {
8695
+ render: "MdImage",
8696
+ attributes: {
8697
+ src: { type: String, required: true },
8698
+ alt: { type: String },
8699
+ title: { type: String },
8700
+ },
8701
+ },
8702
+ fence: {
8703
+ render: "MdFence",
8704
+ attributes: {
8705
+ content: { type: String },
8706
+ language: { type: String },
8707
+ },
8708
+ },
8709
+ blockquote: {
8710
+ render: "MdBlockquote",
8711
+ },
8712
+ list: {
8713
+ render: "MdList",
8714
+ attributes: {
8715
+ ordered: { type: Boolean },
8716
+ },
8717
+ },
8718
+ item: {
8719
+ render: "MdItem",
8720
+ },
8721
+ table: {
8722
+ render: "MdTable",
8723
+ },
8724
+ thead: {
8725
+ render: "MdThead",
8726
+ },
8727
+ tbody: {
8728
+ render: "MdTbody",
8729
+ },
8730
+ tr: {
8731
+ render: "MdTr",
8732
+ },
8733
+ td: {
8734
+ render: "MdTd",
8735
+ attributes: {
8736
+ align: { type: String },
8737
+ colspan: { type: Number },
8738
+ rowspan: { type: Number },
8739
+ },
8740
+ },
8741
+ th: {
8742
+ render: "MdTh",
8743
+ attributes: {
8744
+ align: { type: String },
8745
+ width: { type: String },
8596
8746
  },
8597
- variables: { markdoc: { frontmatter } }
8747
+ },
8748
+ strong: {
8749
+ render: "MdStrong",
8750
+ },
8751
+ em: {
8752
+ render: "MdEm",
8753
+ },
8754
+ s: {
8755
+ render: "MdS",
8756
+ },
8757
+ link: {
8758
+ render: "MdLink",
8759
+ attributes: {
8760
+ href: { type: String, required: true },
8761
+ title: { type: String },
8762
+ },
8763
+ },
8764
+ code: {
8765
+ render: "MdCode",
8766
+ attributes: {
8767
+ content: { type: String }
8768
+ }
8769
+ },
8770
+ hardbreak: {
8771
+ render: "MdHardbreak",
8772
+ },
8773
+ softbreak: {
8774
+ render: "MdSoftbreak",
8775
+ },
8776
+ error: {
8777
+ render: "MdError",
8778
+ },
8779
+ };
8780
+ // Default component mapping
8781
+ const defaultComponents = {
8782
+ MdDocument: MdDocument,
8783
+ MdHeading: MdHeading,
8784
+ MdParagraph: MdParagraph,
8785
+ MdHr: MdHr,
8786
+ MdImage: MdImage,
8787
+ MdFence: MdFence,
8788
+ MdBlockquote: MdBlockquote,
8789
+ MdList: MdList,
8790
+ MdItem: MdItem,
8791
+ MdTable: MdTable,
8792
+ MdThead: MdThead,
8793
+ MdTbody: MdTbody,
8794
+ MdTr: MdTr,
8795
+ MdTd: MdTd,
8796
+ MdTh: MdTh,
8797
+ MdInline: MdInline,
8798
+ MdText: MdText,
8799
+ MdStrong: MdStrong,
8800
+ MdEm: MdEm,
8801
+ MdS: MdS,
8802
+ MdLink: MdLink,
8803
+ MdCode: MdCode,
8804
+ MdHardbreak: MdHardbreak,
8805
+ MdSoftbreak: MdSoftbreak,
8806
+ MdError: MdError,
8807
+ };
8808
+
8809
+ // Helper function to merge configurations
8810
+ function mergeConfig(defaultConfig, userConfig) {
8811
+ if (!userConfig)
8812
+ return defaultConfig;
8813
+ return {
8814
+ nodes: { ...defaultConfig.nodes, ...userConfig.nodes },
8815
+ components: { ...defaultConfig.components, ...userConfig.components },
8816
+ variables: { ...defaultConfig.variables, ...userConfig.variables },
8817
+ tags: { ...defaultConfig.tags, ...userConfig.tags },
8818
+ functions: { ...defaultConfig.functions, ...userConfig.functions },
8598
8819
  };
8599
- const transformed = Markdoc.transform(ast, config);
8820
+ }
8821
+ const Md = ({ content, frontmatter, config: userConfig }) => {
8822
+ const ast = Markdoc.parse(content);
8823
+ // Merge user config with defaults
8824
+ const mergedConfig = mergeConfig({
8825
+ nodes: defaultNodesConfig,
8826
+ components: defaultComponents,
8827
+ variables: { markdoc: { frontmatter } },
8828
+ }, userConfig);
8829
+ // Create Markdoc config
8830
+ const markdocConfig = {
8831
+ nodes: mergedConfig.nodes,
8832
+ tags: mergedConfig.tags,
8833
+ functions: mergedConfig.functions,
8834
+ variables: mergedConfig.variables,
8835
+ };
8836
+ const transformed = Markdoc.transform(ast, markdocConfig);
8600
8837
  return Markdoc.renderers.react(transformed, React, {
8601
- components: {
8602
- MdHeading: MdHeading,
8603
- MdContainer: MdContainer,
8604
- MdLink: MdLink,
8605
- MdList: MdList,
8606
- MdImg: MdImg,
8607
- },
8838
+ components: mergedConfig.components,
8608
8839
  });
8609
8840
  };
8610
8841
 
8611
- export { Md };
8842
+ export { Md, MdBlockquote, MdCode, MdDocument, MdEm, MdError, MdFence, MdHardbreak, MdHeading, MdHr, MdImage, MdInline, MdItem, MdLink, MdList, MdParagraph, MdS, MdSoftbreak, MdStrong, MdTable, MdTbody, MdTd, MdText, MdTh, MdThead, MdTr, defaultComponents, defaultNodesConfig };
8612
8843
  //# sourceMappingURL=index.esm.js.map