markdown-js icon indicating copy to clipboard operation
markdown-js copied to clipboard

Example in READEME for how to use markdown.js in browser is wrong

Open xlwang-bupt opened this issue 9 years ago • 3 comments

  • If we follow the readme to use this markdown.js in browser, It will not be useful, return 'expose is undefined' and 'markdown is undefined',so i change some code in this html in READEME and lib/markdown.js.
  • It maybe not be wrong in old way which READEME described, it may be used in node environment,not run in just simply browser + html + js
  • I change some code ,so i could use it

xlwang-bupt avatar Dec 10 '15 07:12 xlwang-bupt

+1, in Chrome I get "Uncaught ReferenceError: require is not defined" and "Uncaught ReferenceError: markdown is not defined". Readme should be updated with instructions on adding a minimal browserify setup or something similar.

ericgrosse avatar Feb 16 '16 00:02 ericgrosse

I also cannot work out how to reference this library using gulp.

subdavis avatar Aug 14 '16 04:08 subdavis

me too I include require.js and markdown-js-master/src/markdown.js in the html file chrome tell me: markdown is not defined

coooliang avatar Dec 13 '17 06:12 coooliang