Add new option, footnote_link_text#774
Add new option, footnote_link_text#774BryceStevenWilley wants to merge 2 commits intogettalong:masterfrom
footnote_link_text#774Conversation
`footnote_link_text` is a string that is directly inserted in front of the footnote number. It can also be a formatted string that the number is formatted into. For example, if the string is "[footnote %s]", the footnote link will be "[footnote 1]". It will determine it the option is a forat string by running it through `sprintf`; if the output is the same, then it's not a format string. Also adds tests to make sure of the new output.
|
Thanks @BryceStevenWilley for the pull request! What is the benefit of keeping the special case |
It lets folks use Making the default case |
|
Thanks for the feedback! So I would go with the solution of |
So that the footnotes will be labeled distinctly. Reduces some of the necessary runtime code.
This is in now! Let me know if you want it changed at all, I tried to match the surrounding validation blocks, but wasn't certain how well I did. |
|
Thanks for the pull request! This will be in the next release. |
footnote_link_textis a string that is directly inserted in front of the footnote number. It can also be a formatted string that the number is formatted into.For example, if the string is "[footnote %s]", the footnote link will be "[footnote 1]".
It will determine it the option is a forat string by running it through
sprintf; if the output is the same, then it's not a format string.Also adds tests to make sure of the new output.
Fixes #692, and is a different attempt at #693.