Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pc035860 committed Feb 3, 2016
1 parent 10a5aed commit 2c0b320
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ The directive automatically escapes its content HTML entities by default. Can be
</div>
```

**Frequently Asked Question**

Since the code inside `hljs` will be parsed by browser even before AngularJS bootstraped, it sometimes demonstrates strange highlight result when the code you put inside `hljs` have HTML-tag-like syntax (`<blah>`).
To deal with the issue, use `hljs-no-escape` option with manually escaped code or switch to `hljs-source` or `hljs-include` for highlighting.

#### hljs-source (optional)
Type: `expression`
Default: `undefined`
Expand Down

0 comments on commit 2c0b320

Please sign in to comment.