You just need to add some line breaking:
<details> <summary>example</summary> (Youtube Link) </details>