mmark-ext-0.2.0.0: Commonly useful extensions for MMark markdown processor

Copyright© 2017–2018 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 #

Allow to insert spans with font awesome icons using autolinks like this:

<fa:user>

This user identifier is the name of 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 in this URI that go after the name of 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.