-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tick notation is interpreted as quotes #6
Comments
Thanks for the bug report! I agree that this is a problem that needs to be fixed! To calibrate expectations: I'm new to this job (and by "job" I mean volunteering), and don't know a whole lot about the wiki yet. So it might take a while for me to fix this. But I will definitely look into it when I get a chance! |
Of course, we're all volunteers :) I don't know the first thing about the wiki rendering system. If you can point me to documentation, I can look at it, too, to try and figure if and how one can configure its tokenizer. |
Thanks! I'm afraid I know about as much as you do. I suspect there's a plug-in for syntax highlighting, but I'll need to do a little research to find its name and documentation. |
According to Special:Version, the wiki is using the SyntaxHighlight extension, which in turn uses GeSHi - Generic Syntax Highlighter. It appears that the current version of SyntaxHighlight uses pygments instead of GeSHi. So I should probably look into upgrading to the latest version of SyntaxHighlight, and see if pygments handles Haskell syntax better than GeSHi does. |
I'm unclear where the |
I checked the LocalSettings.php of our wiki, and found the following:
|
Thanks, @gbaz ! It sounds then like upgrading SyntaxHighlight won't affect the ability of the On the other hand, it looks like upgrading SyntaxHighlight won't be straightforward, because the current version of SyntaxHighlight requires MediaWiki 1.23 or higher, and we only have MediaWiki 1.19. So going to the latest SyntaxHighlight would require upgrading MediaWiki, which would probably be a good thing, but sounds pretty scary, given how little I still understand. I'm very afraid I would break something. |
Maybe one thing I can offer is to run the above solution through |
Yay, http://pygments.org/demo/6344635/ In case of broken links, it looks good and certainly resolves the title issue with the rendering: |
Also relevant: The underlying issue appears to have been fixed in |
Hmm, but it looks like they stopped cutting releases years ago. |
Thanks, @ramanshah ! I might look into updating GeSHi, since that seems easier and lower risk. On the other hand, we now have another request, #7, to upgrade MediaWiki. Apparently there are some security issues with the version we're running. So maybe I should just bite the bullet and upgrade MediaWiki. |
I've been attempting to upgrade GeSHi, but so far I've been unsuccessful. GeSHi is installed in PHP's package manager appears to be called PEAR. I installed PEAR and attempted to use it, but PEAR doesn't seem to know anything about a package named The GeSHi documentation suggests just installing by copying files. So, I checked out the geshi-1.0 Git repository into I wasn't sure if anything needed to be restarted to pick up the changed files, so I did However, after doing all this, the syntax highlighting is still incorrect. Not sure what to try next. |
OK, it looks like there was some sort of caching going on. I edited the Sandbox page, and now it looks OK. So I think the problem is fixed, but you'll need to make a trivial edit to each page that has incorrect highlighting, to defeat the cache. I'm going to mark this as closed, but please let me know if you run into any issues. |
Hi Patrick,
Thank you for this update and the explanations.
Looking at the Sandbox page it seems to be fixed.
Jean-Hugues
2017-02-14 10:57 GMT+02:00 Patrick Pelletier <notifications@github.com>:
… OK, it looks like there was some sort of caching going on. I edited the
Sandbox <https://wiki.haskell.org/Sandbox> page, and now it looks OK. So
I think the problem is fixed, but you'll need to make a trivial edit to
each page that has incorrect highlighting, to defeat the cache.
I'm going to mark this as closed, but please let me know if you run into
any issues.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVATSgu1ScS1Sze0JpZIDUd5vJHmdKFxks5rcWxdgaJpZM4Llt3k>
.
|
Wonderful! Thanks for fixing this, Patrick! |
First of all, I'm really enjoying the 99 Haskell problems and did a bunch of them this weekend as I try to start getting fluency with Haskell in earnest. Thanks!
The tick character
'
used to denote alternative implementations of a function are being interpreted as single quotes in a language where single quotes denote multi-line strings. To wit, in the solution to question 1:looks like this:
The text was updated successfully, but these errors were encountered: