showdownjs/showdown

Weird Variable Glitch

Aberta

#961 aberto em 9 de nov. de 2022

 (1 comentário) (0 reação) (1 responsável)JavaScript (1.640 forks)batch import
help wanted

Métricas do repositório

Stars
 (13.700 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Hello, when I try to run my code that uses showdown.js, I get these errors:

Uncaught ReferenceError: showdown is not defined It claims that this code line is wrong: const converter = new showdown.Converter();

Uncaught ReferenceError: getDefaultOpts is not defined Inside the file "showdown.js" it states this line of code is wrong: globalOptions = getDefaultOpts(true),

I am not using node for my project. I am using static website files. Please help. Thanks in advance for any assistance.

Guia do colaborador