In my textbook it is given that when alkynes react with sodium in liquid ammonia, hydrogenation takes place and a trans isomer is formed.
It is also given (in another part of the chapter) that when terminal alkynes react with sodium in liquid ammonia, they form a salt with sodium. I assume the first mentioned reaction doesn't take place in the case of terminal alkynes.
Then, how do we, for example, add deuterium to propyne so as to form trans 1,2-dideuteropropene?