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

cndjs claims to host Showdown 1.8.6 but it returns the wrong version??? #603

Closed
KirkMunro opened this issue Oct 16, 2018 · 9 comments
Closed
Assignees

Comments

@KirkMunro
Copy link

KirkMunro commented Oct 16, 2018

@tivie I just ran into issue #478 again, which I know you already fixed when my colleague reported it to you, and was trying to figure out why. In my case, I'm in a different web service project, and the version of showdown that I download (Visual Studio downloads it for me automatically, actually) is reported as 1.8.6; however, it does not contain this fix, so it is quite clearly not version 1.8.6.

Here is the file that is automatically downloaded into my web service when it is launched from a new deployment for the first time: https://cdnjs.cloudflare.com/ajax/libs/showdown/1.8.6/showdown.js.

If you look in that file, specifically at lines 3785-3793, you will see that they do not contain the fixes you applied in this commit.

Do you have any idea why this fix might not be showing up in a version that is being reported as 1.8.6 but doesn't actually appear to be 1.8.6?

@tivie tivie self-assigned this Oct 16, 2018
@tivie
Copy link
Member

tivie commented Oct 16, 2018

It's correct. The commit fe70e45 (the one with the midWordsAsterisk fix) is after commit a8bcde1 (v 1.8.6 commit).

Since version 2.0 is taking a lot more time than expected, I will backport some of the fixes from 2.0 and release a version 1.8.7 today if possible.

@tivie
Copy link
Member

tivie commented Oct 16, 2018

@KirkMunro Btw, do you feel literalMidWordAsterisk is an essential option? Cause for version 2.0 I was really thinking about droping that option since it's causing a lot of trouble in the new parser

@KirkMunro
Copy link
Author

@tivie I think it's pretty important, yes. I also have something that I've been thinking may help: in our app we added an extension for a different emphasis syntax that we needed, and I'm really proud of how well that works, with mid word emphasis or not. It uses a combination of a greedy and a lazy search to figure out what the user really wanted, and works quite wonderfully, with every test case I've thrown at it. Made me wonder if the same logic would be helpful to showdown when it needs to deal with bold or italic emphasis enclosures.

@tivie
Copy link
Member

tivie commented Oct 16, 2018

Version 1.8.7 is available now and should include that (and other) bugfixes.

@KirkMunro
Copy link
Author

@tivie What needs to be done to make 1.8.7 available on cdnjs? Also I just looked at the change log and it doesn't show any changes for 1.8.6 or 1.8.7.

@tivie
Copy link
Member

tivie commented Oct 18, 2018

What needs to be done to make 1.8.7 available on cdnjs?

cdnjs should update automatically. This update is taking longer, I don't know why. You can try to post an issue in the CDNJS repository so that devs might have a look why the package is not being updated.

You also have https://unpkg.com/#/ CDN: https://unpkg.com/showdown@1.8.7/dist/showdown.min.js

Also I just looked at the change log and it doesn't show any changes for 1.8.6 or 1.8.7

What do you mean? https://github.com/showdownjs/showdown/blob/version_1.x/CHANGELOG.md

@KirkMunro
Copy link
Author

Thanks, I posted an issue in the CDNJS repo asking why it seems to be taking so long.

For the change log, I was referring to this document:
https://github.com/showdownjs/showdown/blob/master/CHANGELOG.md

It shows the last update as 1.8.5. Is that because master is now the 2.x branch?

@tivie
Copy link
Member

tivie commented Oct 18, 2018

Yes. I will update that

@KirkMunro
Copy link
Author

Great, thanks for this @tivie! I'll close this issue since I have this issue opened in the CDNJS repo.

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

No branches or pull requests

2 participants