docsify-material-icons
v0.1.0
Published
A simple Material Icons plugin for Docsify
Downloads
457
Readme
docsify-material-icons
Material Icons plugin for Docsify.
Install
- 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>
Usage
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>
Example
- Run
npm run build
- Run
npm run example
- Go to http://localhost:3000/
License
TODO
- Better parser to escape code sections