Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Markdown Handling #26

Open
lyqht opened this issue May 26, 2023 · 1 comment
Open

Feature Request: Markdown Handling #26

lyqht opened this issue May 26, 2023 · 1 comment

Comments

@lyqht
Copy link

lyqht commented May 26, 2023

Hi there, thanks for the great library to use the DeepL API!

I made a github action for using deepl-node to translate text documents, however there's quite a lot of limitations in trying to parse markdown elements.

You can refer to some limitations that's mentioned in this demo or this PR.

The formatting errors that were raised in both examples may be due to the use of markdown checkboxes, bolded text etc, since most other HTML elements were able to be translated accurately, and only break on certain languages.

@daniel-jones-dev
Copy link
Member

Hi @lyqht, sorry for the very late reply on this issue.

Yes, we're aware that Markdown formatting is not handled very well; our translation models are not intended to handle this kind of text.

We'd like to better support Markdown in future, e.g. as another document type (like HTML or PDF); the feature is in our backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants