Skip to content

html code send to prism-highlighter is parsed by polymer #16

@Stefdv

Description

@Stefdv

Description

code send to prism-highlighter element is actually 'parsed' by polymer.
used prism-demo as example
https://github.com/PolymerElements/prism-element/blob/master/demo/prism-demo.html
<dom-module id="my-element">
<template>
console.log('hello world")
</template>
</dom-module>
<my-element></my-element>
<prism-demo code="<my-element></my-element>" lang="html"></prism-demo>

Expected outcome

hello world

Actual outcome

hello world
hello world

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