angular-highlightjs icon indicating copy to clipboard operation
angular-highlightjs copied to clipboard

Nested hljs

Open jlouazel opened this issue 8 years ago • 1 comments

Hi,

I was trying to make the following example works:

index.html

<p>What is the answer to life the universe and everything?</p>
<div hljs include="'views/answer.html'"></div>

answer.html

<b>42</b>

<p>I'm sorry, what's the right question to get the answer I want?</p>
<div hljs include="'views/right-question.html'"></div>

We'll never know what's inside right-question.html because the result is like the following:

<p>What is the answer to life the universe and everything?</p>
<b>42</b>
<p>I'm sorry, what's the right question to get the answer I want?</p>
<div hljs include="'views/right-question.html'"></div>

So my guess is that angular-highlightjs does not handle nested calls but maybe I'm missing something. What do you think about that?

Thanks

jlouazel avatar Jul 28 '16 09:07 jlouazel

Hi @jlouazel

Yes, angular-highlightjs doesn't support nested usage. You'll have to find another way to achieve the effect you want.

pc035860 avatar Jul 28 '16 09:07 pc035860