Skip to content

Conversation

@vvvar
Copy link
Owner

@vvvar vvvar commented Nov 29, 2024

Problem

When there is a definition followed by any block like this:

[1]: https://www.example.org
[2]: https://www.example.com
## Something

fmt does not adds new line after the last defintion. Also, when in the source fie there's a definition with newline

[2]: https://www.example.com

## Something

it is removed after fmt so it becomes this:

[2]: https://www.example.com
## Something

Solution

Handle when link definition is followed by anything except another definiton and add newline.

@vvvar vvvar added the bug Something isn't working label Nov 29, 2024
@vvvar vvvar self-assigned this Nov 29, 2024
@vvvar vvvar merged commit a678caa into main Nov 30, 2024
6 checks passed
@vvvar vvvar deleted the bugfix/add_newline_after_definitions_block branch November 30, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants