You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a required directive. Without any other supportive directives, it provides basic inline highlight function. For better understanding, some notes about using it are specified in the live example page.
72
72
73
-
The directive automatically escapes its content HTML entities by default. Can be turned off with explicitly configuration `escape="{expression evaled to false}"` or `no-escape`, and **they're only applicable for "just-`hljs`" usage**.
73
+
The directive automatically escapes its content HTML entities by default. Can be turned off with explicitly configuration `hljs-escape="{expression evaled to false}"` or `hljs-no-escape`, and **they're only applicable for "just-`hljs`" usage**.
@@ -82,16 +82,16 @@ The directive automatically escapes its content HTML entities by default. Can be
82
82
<!-- hljs end -->
83
83
84
84
<!-- Will get the same result as above -->
85
-
<divhljsno-escape>
85
+
<divhljshljs-no-escape>
86
86
<!-- put your codes here -->
87
87
</div>
88
88
```
89
89
90
-
#### source (optional)
90
+
#### hljs-source (optional)
91
91
Type: `expression`
92
92
Default: `undefined`
93
93
94
-
If `source` is presented, the `hljs` directive will evaluate the expression and highlight the result string. This is pretty useful for dynamically changed content.
94
+
If `hljs-source` is presented, the `hljs` directive will evaluate the expression and highlight the result string. This is pretty useful for dynamically changed content.
0 commit comments