markdown-js
markdown-js copied to clipboard
Example in READEME for how to use markdown.js in browser is wrong
- 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
+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.
I also cannot work out how to reference this library using gulp.
me too I include require.js and markdown-js-master/src/markdown.js in the html file chrome tell me: markdown is not defined