-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Promote gist-block-macro extension #99
Comments
I agree, though I'd also like to have this extension reviewed. It was a super quick hack. Are there things about it we need to add before we make it "live"? I'm really looking for people who like to use gists in blog posts since that's when I imagine it will be used the most. |
@mojavelinux Actually we can't use the embed script in the chrome extension because the script use
Instead we could use the Quick implementation in JavaScript: $.getJSON("https://gist.github.com/mojavelinux/5546622.json", function(data) {
var gistLink = document.createElement('link');
gistLink.rel = 'stylesheet';
gistLink.id = 'gist-style';
gistLink.href = data.stylesheet;
document.head.appendChild(gistLink);
$(".gist-content-script").append(data.div);
}); |
Great thinking! I wasn't aware the gist was served as JSON. That makes things a lot simpler (in theory). I'm perfectly happy with the idea of reworking the extension to use this approach instead. As long as the snippet gets into the browser, I don't care how it happens. Perhaps we should have a parallel issue in the extension lab to change the implementation. |
Yes, if you are OK with this change, I will create an issue in the extension lab repository. |
👍 |
I think this issue is not relevant anymore since Asciidoctor.js does not contains (or promote) extensions. |
No description provided.
The text was updated successfully, but these errors were encountered: