getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org

Home Page:https://www.getzola.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`bottom_footnotes` config adds unwanted square brackets to footnote references

asibahi opened this issue · comments

Hello.

The square brackets around footnotes references applied when bottom_footnotes config is set is not documented anywhere, and honestly, looks ugly. They should either be removed or made as a config option.

The removal is a tiny change I made in my fork here here. I did not want to create a pull request, however, without clearing that it is ok to do so.

The additional config option would be a bit more involved: Upgrade the bottom_footnotes config to an enum with Default, Bottom, Github-style etc.

@totikom any idea why the brackets are there?

@totikom any idea why the brackets are there?

They were initially used in "gh-style", but they can be safely removed.
The patch by @asibahi is a correct way to do it.

They don't seem used by GH itself so I think a PR to remove them is fine

They don't seem used by GH itself so I think a PR to remove them is fine

Yep, it is totally ok.