Do not break 'renderPermalink' signature
Do not break 'renderPermalink' signature

- Keep passing the slug as first argument.
- Also refactor the 'getAttr' function.

valeriangalliat/markdown-it-anchor,valeriangalliat/markdown-it-anchor,arve0/markdown-it-anchor