-
Notifications
You must be signed in to change notification settings - Fork 13
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
Share button depends on discontinued service #9
Comments
Is this the reason why old editor snippet references are not working, or is that a separate issue? |
Yep, this is the reason that share links no longer work. |
This could probably be fixed by base64-encoding the data and storing it in the URL (though it would make for big URLs if the grammar is big). It might be a hassle to make it backwards compatible, but that might not matter if old links won't work anyways? I could take a stab at this if it would be of interest. |
or use another service (e.g. https://jsonserve.com )? |
This commit replaces the current editor share button (which depends on a discontinued service, per pest-parser#9) with a version that * grabs the grammar from the editor * base64-encodes it, and * stores it in a URL It also adds code that checks for a grammar during page load and inserts it into the editor. This lets folks create self-contained share links as long as there are no breaking changes in the grammar format, which I think is the right tradeoff for an online playground-style editor. Fixes pest-parser#9
This commit replaces the current editor share button (which depends on a discontinued service, per pest-parser#9) with a version that * grabs the grammar from the editor * base64-encodes it, and * stores it in a URL It also adds code that checks for a grammar during page load and inserts it into the editor. This lets folks create self-contained share links as long as there are no breaking changes in the grammar format, which I think is the right tradeoff for an online playground-style editor. Fixes pest-parser#9
The Share button for the online editor depends on myjson.com, but it appears that that service has been discontinued.
The text was updated successfully, but these errors were encountered: