rstudio / distill

Distill for R Markdown
https://rstudio.github.io/distill/
Apache License 2.0
422 stars 57 forks source link

Extra blank space before footnote symbol #301

Open vgXhc opened 3 years ago

vgXhc commented 3 years ago

For reference, I have posted about the issue here

Distill produces a blank space between the footnote symbol and the preceding character. So

A word^[with a footnote] that needs explanation.

will be rendered as

A word 1 that needs explanation

rather than

A word1 that needs explanation

image

I am not familiar with any style guide that suggests having the extra blank space, and so I'm wondering if this intentional. If it is, it would be nice to have the option of changing this behavior.

Thanks!

cderv commented 3 years ago

I believe this is intentional and follow the style of the Distill Framework this R package is based on. See https://distill.pub/guide/

You can try customize the CSS if you don't like this style: https://rstudio.github.io/distill/website.html#custom-style