Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @guptarahul1997.

    This seems like a legitimate case which should be supported in the plugin by default. I have created this feature request on GitHub for it to be included in a future version of the plugin:

    https://github.com/Automattic/facebook-instant-articles-wp/issues/240

    In the mean time, you can define your own Custom Transformer Rule to support this immediately and it will not conflict when a new version of the plugin is released to support this case.

    This should do the trick for it to not be stripped out:

    {
        "rules" : [
    
            {
                "class": "PassThroughRule",
                "selector": "mark"
            }
    
        ]
    }

    And it you’d like to stylize it in italics or bold, change PassThroughRule to ItalicRule or BoldRule, respectively.

    Thread Starter guptarahul1997

    (@guptarahul1997)

    After doing what you said the the text which was highlighted appeared but it is not highlighted .
    Any way by which it can be highlighted now?

    Also please tell me the CUSTOM TRANSFORMER RULE to show related content automatically and show like and comment button below images(with and without captions both).

    @guptarahul1997, the behaviour you’re observing is expected. Instant Articles doesn’t support highlighted text as part of it’s styling. As noted in my previous comment, you could render it in italics.

    To your second questions, the online reference docs shows how this can be done, however, the plugin doesn’t currently allow this to be modified.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Highlighted text not appearing in instant articles’ is closed to new replies.