Skip to content

Highlighting not working when inside a dom-repeat template #24

@mohanaravind

Description

@mohanaravind

Description

Highlighting doesn't work when it is inside a dom-repeat template. Reason being the _highlight method inside prism-highlighter.html never gets called. It will be nicer if we expose the prism API directly as a method on the component. It works if I explicitly use the _highlight method.

Expected outcome

Code highlights

Actual outcome

The tag not getting rendered

Live Demo

https://jsbin.com/vipuxo/2/edit?html,output

Steps to reproduce

Have a prism-element inside a dom-repeat template

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions