0.0.4 • Published 1 year ago

docsify-material-icons v0.0.4

Weekly downloads
75
License
Apache-2.0
Repository
github
Last release
1 year ago

docsify-material-icons

Material Icons plugin for Docsify.

Install

  1. 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"/>
  1. 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

  1. Run npm run build
  2. Run npm run example
  3. Go to http://localhost:3000/

License

Apache License

TODO

  • Better parser to escape code sections