GithubHelp home page GithubHelp logo

Comments (4)

everton-rosario avatar everton-rosario commented on April 16, 2024

There are some tags accepted inside H1 and H2. Example: , , .

To make it work on your case you should transform it from:

    <h1><em>Mommy</em>, Xavier Dolan</h1>

to:

    <h1><i>Mommy</i>, Xavier Dolan</h1>

To make it happen, just add the bellow lines to your rules.json file.

            {
                "class": "ItalicRule",
                "selector" : "em"
            }

from facebook-instant-articles-sdk-php.

nicolinuxfr avatar nicolinuxfr commented on April 16, 2024

Thanks for your answer ! Could you point me in the right direction to do this properly ? I guess I have something to add in my functions.php file ?

EDIT : never mind, I forgot about the last option in settings screen.

EDIT 2 : should I wait after adding the custom rule ? The feed still displays <em> instead of <i>.

Just to be perfectly clear, here's what I have :

capture d ecran 2016-04-14 a 20 25 02

from facebook-instant-articles-sdk-php.

nicolinuxfr avatar nicolinuxfr commented on April 16, 2024

Now that the feed has been updated, I can confirm this setting does not work. I still have titles like this one :

<h1>&lt;em&gt;Théo &amp; Hugo dans le même bateau&lt;/em&gt;, Olivier Ducastel et Jacques Martineau</h1>

If you can help me debug this… :-)

Feed URL, if it helps : https://voiretmanger.fr/feed/instant-articles/

from facebook-instant-articles-sdk-php.

nicolinuxfr avatar nicolinuxfr commented on April 16, 2024

OK, so I see now that I made a mistake in the format. I think it is correct now like this :

{ "rules": [{ "class": "italicRule", "selector": "em" }] }

Can you confirm it's OK ? And if it is, it does not work, unfortunately…

from facebook-instant-articles-sdk-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.