Generate html with inline css

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Generate html with inline css

ch007m
Hi,

When HTML is included in an email & displayed within GMail, then Gmail will strip the <style/> tag (https://litmus.com/blog/understanding-gmail-and-css-part-1)

I'm wondering if an option exists to inline css when asciidoctor will generate the HTML ?

Regards,

Charles
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Ted
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Generate html with inline css

Ted
Are you talking about having Asciidoctor style each HTML element individually inline for the whole document?

Not just one element

image:diagram.png[Diagram,150,150,float="right"]

which renders the style inline in the span.

<p>
    <span class="image" style="float: right">
        <img src="diagram.png" alt="Diagram" width="150" height="150">
    </span>
</p>
- Ted @TedAtCIS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Generate html with inline css

mojavelinux
Administrator
In reply to this post by ch007m

On Wed, Aug 17, 2016 at 7:36 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I'm wondering if an option exists to inline css when asciidoctor will generate the HTML ?

I'm certain there are tools that will convert HTML in this way. This is not something Asciidoctor does itself.

Perhaps something like:


-Dan


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Loading...