Skip to content

Commit

Permalink
docs: add syntax highlighting for typescript (#1345)
Browse files Browse the repository at this point in the history
According to Docsify docs (https://docsify.js.org/#/language-highlight?id=language-highlighting)
only few languages are supported by default by Prism (the underlying lib), and TypeScript is not.
This commit aims to add such support on TypeScript snippets like the one at `web` page.
  • Loading branch information
micalevisk committed Feb 22, 2022
1 parent efcdc97 commit f8696ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
<!-- To enable syntax highlighting on TypeScript codes: -->
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-typescript.min.js"></script>

</html>

0 comments on commit f8696ab

Please sign in to comment.