ng-embed icon indicating copy to clipboard operation
ng-embed copied to clipboard

code highlight generating html as htmlencode

Open hgouveia opened this issue 9 years ago • 3 comments

I Just tried this lib , almost all functionality are working , but i tried putting this (the ` are separate by space to avoid github markdown style it )

` ` `
 var hello="world";
` ` `

i got this output

<div ng-bind-html="neText" class="ng-binding">&lt;pre&gt;&lt;code class="ne-code hljs  "&gt;var hello="world";&lt;/code&gt;&lt;/pre&gt;</div>

so the html is not rendered , im using the directive, and yes i have highlight : true in the options and included in the script on the index.html

hgouveia avatar Aug 10 '16 15:08 hgouveia

It only supports github styled markdown.

ritz078 avatar Dec 23 '16 09:12 ritz078

@ritz078 as I explained in the example I used Github markdown I just used `, but the issue is not that, the issue is that when is converted to html, the output is html encoded so is never rendered, it also happens with the included index examples

hgouveia avatar Dec 23 '16 09:12 hgouveia

@hgouveia I tested this in the demo app in latest master and there it does render correctly. There have been updates to the code but no new release yet. The ngEmbed version and libs in the site http://riteshkr.com/ng-embed are outdated.

robman87 avatar Dec 23 '16 11:12 robman87