@readme/markdown 6.75.0-beta.32 → 6.75.0-beta.33

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.
@@ -8,14 +8,12 @@ let syntaxHighlighter;
8
8
  let canonicalLanguage = _ => '';
9
9
 
10
10
  if (typeof window !== 'undefined') {
11
- const module = await import('@readme/syntax-highlighter');
12
-
13
- syntaxHighlighter = module.default;
14
- canonicalLanguage = module.canonical;
11
+ import('@readme/syntax-highlighter').then(module => {
12
+ syntaxHighlighter = module.default;
13
+ canonicalLanguage = module.canonical;
14
+ });
15
15
  }
16
16
 
17
- console.log(syntaxHighlighter);
18
-
19
17
  function CopyCode({ codeRef, rootClass = 'rdmd-code-copy', className = '' }) {
20
18
  const copyClass = `${rootClass}_copied`;
21
19
  const button = createRef<HTMLButtonElement>();