@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.js CHANGED
@@ -2031,18 +2031,24 @@ function renderCumToTailwind(markdown3) {
2031
2031
  function renderCumToJson(markdown3) {
2032
2032
  return parseCum(markdown3);
2033
2033
  }
2034
+ var globalAPI = {
2035
+ renderCum,
2036
+ parseCum,
2037
+ createCumEngine,
2038
+ renderCumToHtml,
2039
+ renderCumToTailwind,
2040
+ renderCumToJson,
2041
+ // Legacy aliases
2042
+ render: renderCum,
2043
+ parse: parseCum,
2044
+ // Include the main class
2045
+ ChangerawrMarkdown
2046
+ };
2034
2047
  if (typeof window !== "undefined") {
2035
- window.ChangerawrMarkdown = {
2036
- renderCum,
2037
- parseCum,
2038
- createCumEngine,
2039
- renderCumToHtml,
2040
- renderCumToTailwind,
2041
- renderCumToJson,
2042
- // Legacy aliases
2043
- render: renderCum,
2044
- parse: parseCum
2045
- };
2048
+ window.ChangerawrMarkdown = globalAPI;
2049
+ }
2050
+ if (typeof globalThis !== "undefined") {
2051
+ globalThis.ChangerawrMarkdown = globalAPI;
2046
2052
  }
2047
2053
 
2048
2054
  // src/index.ts