kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Other
988 stars 147 forks source link

Adding linebreak stripping #351

Closed nyarly closed 11 months ago

nyarly commented 11 months ago

Adds --strip-newlines which collapses single newlines into a space - effectively what would happen during normal HTML rendering. This is to address Confluence's behavior, which is to insert a <br>.

Closes #92

mrueg commented 11 months ago

Thanks for the contribution! I've added a couple of comments to it.

nyarly commented 11 months ago

I've updated the PR in response to comments.

mrueg commented 11 months ago

Thanks for the feature @nyarly ! While I have you here and you probably also looked a bit deeper into goldmark, any thoughts on how to solve https://github.com/kovetskiy/mark/issues/324 ?