Pdfmake splits links into many small chunks
If you declare a simple content like [{text: 'Some text with words, link: 'http://localhost'}] pdfmake does not create a single link around the whole text. Instead it creates a link for every single word in the text.
This has undesired consequences. For example, Firefox highlights link when you hover over them. But instead of showing the whole text as a link, every single word appears as a separate link:

I had a look at the source code and the fundamental problem seems to be that pdfmake splits every string at the very beginning into its words, copying all information from the whole object onto its parts. It thereby destroys any info about what elements should be linked and can’t re-create that information later on.
Any solution for this?