mmark-ext-0.2.1.5: Commonly useful extensions for the MMark markdown processor
Copyright© 2017–present Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov92@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.MMark.Extension.FontAwesome

Description

Turn links into Font Awesome icons.

Synopsis

Documentation

fontAwesome :: Extension Source #

Insert spans with font awesome icons using autolinks like this:

<fa:user>

This user identifier is the name of the icon you want to insert. You can also control the size of the icon like this:

<fa:user/fw> -- fixed width
<fa:user/lg> -- large
<fa:user/2x>
<fa:user/3x>
<fa:user/4x>
<fa:user/5x>

In general, all path components that go after the name of the icon will be prefixed with "fa-" and added as classes, so you can do a lot of fancy stuff, see http://fontawesome.io/examples/:

<fa:quote-left/3x/pull-left/border>

See also: http://fontawesome.io.