The Official D Blog is Live

Jacob Carlborg via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Jun 11 06:42:35 PDT 2016


On 2016-06-10 20:47, Jacob Carlborg wrote:

> Unfortunately there doesn't seem to be an exact specification of what's
> required for the reader mode to be available. I can do some digging to
> see if I can find something.

At the bottom is the minimal amount of HTML code I could come up with 
that makes the reader mode available.

The number of letters in these paragraphs are important. If I remove 
some letters it will not make the reader mode available. But, it depends 
on the width of the browser window. The first paragraph below needs to 
not fit on one line to make the reader mode available. Below is the 
exact number of letters or words required to not make the text fit on 
one line on using a 1920px wide window.

An image is not required but I wasn't able to figure out what to use 
instead of the image below.

The document cannot be locale, i.e. file://.

I've not bother trying to make a multiple page article work.

<!DOCTYPE html>
<html>
    <body>
      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
      veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip 
ex ea
      commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
      velit esse cillum

      <p>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
eiusmod
        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
      </p>

      <p>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
eiusmod
      </p>

      <div>
         <div>
           <img src="image.jpg" />
         </div>
      </div>
    </body>
</html>

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list