deepl-node
deepl-node copied to clipboard
Feature Request: Markdown Handling
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.
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.
@daniel-jones-dev Do you have a rough timeline when this feature might come?
Any updates?
Same questions here. Especially for Deepl API it's really a necessity.
What I ended up doing is converting my output to HTML using a library, feeding it to deepl with the HTML flag, and then converting it back to markdown for the output using another library
Nice workaround thx!
What I ended up doing is converting my output to HTML using a library, feeding it to deepl with the HTML flag, and then converting it back to markdown for the output using another library
I wonder if deepl can do this under the hood too!
@brycepg may I ask you what library you've used? I tried https://github.com/showdownjs/showdown and run into issues with tables and footnotes.
Any update? Is it planned to provide proper markdown support? Thanks