pc035860 / angular-highlightjs

AngularJS directive for syntax highlighting with highlight.js
http://pc035860.github.io/angular-highlightjs/example/
MIT License
294 stars 53 forks source link

Problem with .nohightlight class #45

Closed cassc closed 8 years ago

cassc commented 9 years ago

<div class="col-lg-8" hljs language="java" source="s.content.taggedSource"></div> For the above html code, my {{s.content.taggedSource}} contains <a href='#lntarget' class='nohighlight'>linkfrom</a>, I'd expect an html link to created, however I get the raw text.

pc035860 commented 9 years ago

According to https://highlightjs.org/usage/ I think the nohighlight class is just to prevent the auto-detected HTML strcture

<pre><code> ... </code></pre>

from being highlighted, rather than providing a partially disabling highlight feature?