Material Icons plugin for Docsify.
- Insert Material Icons CSS into docsify document (index.html)
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp" rel="stylesheet"/>
- Then insert script plugin into same document
<script src="//unpkg.com/docsify-material-icons/dist/docsify-material-icons.min.js"></script>
Any text inside of :
character is processed as CSS style and converted to HTML code for Material Icons, example:
:mi-two-tone check_circle green:
This code is converted to :
<i class="material-icons-two-tone">check_circle</i>
- Run
npm run build
- Run
npm run example
- Go to http://localhost:3000/
- Better parser to escape code sections