Closed gprst closed 3 years ago
Hmm this is interesting. I wonder if anyone working on this file locally and having a formatter like prettier
running on their files would run into this issue. What do you think @gprst ?
No solution occurs to me. This issue has been discussed multiple times (either on Hugo forum or on Hugo GitHub repo), and the answer of bep at the time was that you can use a linter in many situations, but should not in this one.
I imagine one can set up their linter to format files only on save. And since this file isn't supposed to change much (if at all), it should be fine and stay the same without any unwanted new line addition.
Also another workaround would be to configure the theme to use Blackfriday instead of Goldmark (the default) as a markdown formatter, but Blackfriday will eventually be deprecated, which is to keep in mind.
Ok in that case I think this should be a default in the project. Thanks for the fix!
A whitespace was forced after every link when the markdown was translated to HTML. For instance, something like this:
would be rendered like this: