mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
Describe ordering requirement for prism script tag (#1935)
I couldn't get a prism typescript language grammar to work until I realised that script order mattered. This might not be the best language or format for this, but I think it probably belongs in the documentation in some manner. Thank you!
This commit is contained in:
parent
26013929cc
commit
f4cae7ff82
@ -14,6 +14,8 @@ Support for [additional languages](https://prismjs.com/#supported-languages) is
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script>
|
||||
```
|
||||
|
||||
!> This `<script>` tag must be placed after the docisfy `<script>` to work.
|
||||
|
||||
To enable syntax highlighting, wrap each code block in triple backticks with the [language](https://prismjs.com/#supported-languages) specified on the first line:
|
||||
|
||||
````
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user