-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
I am using hljs-include to pull in code from back-end, which takes half a second. Enough for end-users to notice. I also noticed that hljs initially shows the contents of the directive before replacing it with the result from the include. So I added a "loading.." message in there. Next thought was to add a spinner, something like:
<hljs hljs-include="uri">loading.. <i class="fa fa-spinner fa-spin"></i></hljs>
Unfortunately, the i tag gets escaped, and shown as is. If I add hljs-no-escape, it gets stripped away. Would be fun if I could show a loading message with a spinner somehow. Is that possible with current hljs?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels