Skip to content

Instantly share code, notes, and snippets.

Created February 13, 2014 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/dac8efdb7c90206acffe to your computer and use it in GitHub Desktop.
Save anonymous/dac8efdb7c90206acffe to your computer and use it in GitHub Desktop.
--- a/_plugins/asciidoc.rb
+++ b/_plugins/asciidoc.rb
@@ -12,7 +12,7 @@ module Jekyll
end
def convert(content)
- Asciidoctor.load(content, {:attributes => {'imagesdir' => '../'}}).render
+ Asciidoctor.load(content, {:attributes => {'imagesdir' => '../', 'secure' => 0}}).render
end
end
end
@corinnekrych
Copy link

:asciidoctor-source: https://raw2.github.com/aerogear/aerogear.org/master/docs/guides/aerogear-push-js

include::{asciidoctor-source}/unifiedpush-server.asciidoc[]

@corinnekrych
Copy link

Add allow-uri-read

Asciidoctor.load(content, :safe => 0, :attributes => {'imagesdir' => '../', 'allow-uri-read' => true}).render

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment