Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make markdown.js work with IE8 #68

Merged
merged 1 commit into from
Apr 21, 2013
Merged

Conversation

tatsuhiro-t
Copy link
Contributor

IE8's Array.prototype.splice requires 2nd argument to specify the
number of elements to be removed. Without that, nothing is removed.

If JS compressor (e.g., yui) compresses markdown.js,

... function Markdown(dialect) {

will become something like:

... function g(d) { ...

Then, Markdown.dialects.Gruber becomes g.dialects.Gruber.
But IE8 does not understand this. The fix is just remove
"Markdown" from after "function".

IE8's Array.prototype.splice requires 2nd argument to specify the
number of elements to be removed. Without that, nothing is removed.

If JS compressor (e.g., yui) compresses markdown.js,

  ... function Markdown(dialect) {

will become something like:

  ... function g(d) { ...

Then, Markdown.dialects.Gruber becomes g.dialects.Gruber.
But IE8 does not understand this. The fix is just remove
"Markdown" from after "function".
evilstreak added a commit that referenced this pull request Apr 21, 2013
Make markdown.js work with IE8
@evilstreak evilstreak merged commit 98d99c8 into evilstreak:master Apr 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants