You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not add newlines after block image at the end of md file #3428
With the new block images a file that only contains an image link will have an empty line added to the end.
The markdown in question already parsed as a block image before. So theoretically it's not necessary to add an empty line after it.
I think we have the same issue with tables at the end of the doc and other block elements. In order to ensure they are not added to the following paragraph we add an empty line below. However this is not needed at the end of the file. There we want to keep an existing empty line but avoid adding new ones.
changed the title [-]Preserve number of newlines at the end of md file[/-][+]Do not add newlines after block image at the end of md file[/+]on Nov 23, 2022
Activity
max-nextcloud commentedon Nov 15, 2022
part of #3327
test: adjust markdown test to current behavior
test: adjust markdown test to current behavior
test: adjust markdown test to current behavior
test: adjust markdown test to current behavior
test: adjust markdown test to current behavior
[-]Preserve number of newlines at the end of md file[/-][+]Do not add newlines after block image at the end of md file[/+]