I need to add some text with a link in a pptx slide. I need that only link points to a hyperlink. I tried to separate the text and created 2 paragraphs, 1 without a link and 1 with a link, but then I am having 2 pieces of text in different rows and I cannot merge them afterwards.
How can I set a link only on one word in python pptx?
Here is my code:
r1 = text_frame.paragraphs[0].add_run()
r1.text = 'some text with a '
r2 = text_frame.add_paragraph().add_run()
r2.text='link'
r2.hyperlink.address = 'google.com'

I used this answer: https://stackoverflow.com/a/56226142/13010940 and I changed the script like this:
I found out that it is possible to add multiple runs in a single paragraph.