@changerawr/markdown 1.0.0 → 1.0.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.mjs CHANGED
@@ -1940,18 +1940,24 @@ function renderCumToTailwind(markdown3) {
1940
1940
  function renderCumToJson(markdown3) {
1941
1941
  return parseCum(markdown3);
1942
1942
  }
1943
+ var globalAPI = {
1944
+ renderCum,
1945
+ parseCum,
1946
+ createCumEngine,
1947
+ renderCumToHtml,
1948
+ renderCumToTailwind,
1949
+ renderCumToJson,
1950
+ // Legacy aliases
1951
+ render: renderCum,
1952
+ parse: parseCum,
1953
+ // Include the main class
1954
+ ChangerawrMarkdown
1955
+ };
1943
1956
  if (typeof window !== "undefined") {
1944
- window.ChangerawrMarkdown = {
1945
- renderCum,
1946
- parseCum,
1947
- createCumEngine,
1948
- renderCumToHtml,
1949
- renderCumToTailwind,
1950
- renderCumToJson,
1951
- // Legacy aliases
1952
- render: renderCum,
1953
- parse: parseCum
1954
- };
1957
+ window.ChangerawrMarkdown = globalAPI;
1958
+ }
1959
+ if (typeof globalThis !== "undefined") {
1960
+ globalThis.ChangerawrMarkdown = globalAPI;
1955
1961
  }
1956
1962
 
1957
1963
  // src/index.ts