Adding anchors to your middleman project
14 May 2016
All people love anchors. It’s helpful, cool and practical. If you
want to add anchors to you middleman project you need to follow the
following steps.
First: we need to create a new renderer class. In this class we’ll
put <a>
tag inside <h>
tag. Also, we’ll realize anchor svg in
guthub style:
After that we need to call our renderer in :markdown
configuration:
And the last step: we need to stylize our anchor with css:
After all this steps we’ll get something like this:
I hope it will be useful to you as well as for me at one time.
Happy hacking! 💚