Closed AleksandrHovhannisyan closed 3 years ago
Ah yeah I meant styleOfPermalink
as a placeholder for any of the permalink methods documented below, but that's not necessarily obvious.
I modified the example to have anchor.permalink[styleOfPermalink](permalinkOpts)
to make it more clear that it's a variable, and I added a paragraph below saying it needs to be one of the styles documented afterwards.
Let me know if that heps! Cheers :)
Ah, that makes sense, thanks!
The documentation here:
https://github.com/valeriangalliat/markdown-it-anchor/#permalinks
Says that you can do this:
But this throws an error. Is
styleOfPermalink
not an actual method we can invoke? If not, what is the correct syntax?Thanks!