Revert "remove permalink fn"

This reverts commit 1f521cef0efacce7663b9765705d1f501eb62472.
toggle style
collapse coffeescript cell exceptions