daugsbi / simpleen-cli

A CLI-Tool to automatically translate your i18n project
https://simpleen.io
Other
3 stars 0 forks source link

Markdown parser ignores single newlines #4

Open joepio opened 2 years ago

joepio commented 2 years ago

Just noticed your tool, it's amazing!

One small issue prevents me from using this in a fully-automated setup. It ignores single newlines. In markdown, these can be interpreted as spacebars, but you should not remove them.

I'm a markdown string.
This is a newline.
This, too!

Becomes:

I'm a markdown string.This is a newline.This, too!
daugsbi commented 2 years ago

Hi @joepio Thanks for the feedback. We improved some Markdown syntax, but wanted to be mostly compatible with the standard and stay compatible with some common flavours. Do you know which flavour supports single newlines?

The line breaks should work as expected (https://www.markdownguide.org/basic-syntax/#line-breaks).

I understand that the translation result is not what you've expected. Just need to find out how to stay compatible and keep the provided shape of the Markdown file.

Cheers