Login  Register

Generate html with inline css

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

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
| More
Print post
Permalink

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
| More
Print post
Permalink

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