Skip to content

Commit f4cae7f

Browse files
authored
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!
1 parent 2601392 commit f4cae7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/language-highlight.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Support for [additional languages](https://prismjs.com/#supported-languages) is
1414
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script>
1515
```
1616

17+
!> This `<script>` tag must be placed after the docisfy `<script>` to work.
18+
1719
To enable syntax highlighting, wrap each code block in triple backticks with the [language](https://prismjs.com/#supported-languages) specified on the first line:
1820

1921
````

0 commit comments

Comments
 (0)