Adds a new inline extension about emoji icons

Adds a new inline extension about emoji icons so emoji icons can be used in any AsciiDoc document.
So true copy paste horror :) I will send again the PR :)

El diumenge, 2 novembre de 2014, Guillaume Grossetie <
notifications@github.com> va escriure:

> In lib/emoji-inline-macro/extension.rb:
>
> > +    if(parent.document.attributes.has_key? 'data-uri')
> > +      content = open("#{cdn}#{target}.png") { |io| io.read }
> > +      base64Image = Base64.encode64(content)
> > +
> > +      source = %(
> > +        <img height="#{size}" src="data:image/png;base64,#{base64Image}" width="#{size}" />
> > +      )
> > +    else
> > +      source = %(
> > +        <img height="#{size}" src="#{cdn}#{target}.png" width="#{size}" />
> > +      )
> > +    end
> > +  end
> > +end
> > +
> > +Asciidoctor::Extensions.register do
>
> I think you can remove this block and keep the one in
> lib/emoji-inline-macro.rb
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/asciidoctor/asciidoctor-extensions-lab/pull/18/files#r19713360>
> .
>


-- 
Enviat amb Gmail Mobile