showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.19k stars 1.56k forks source link

Weird Variable Glitch #961

Open slendertech opened 1 year ago

slendertech commented 1 year ago

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.

tivie commented 1 year ago

Can you provide a little bit more context? Maybe create a https://codepen.io/pen/ to reproduce the issue.