We present a novel three-dimensional configuration for the numerical study of the flame-vortex interaction. The premixed flame is initially located within a vortex tube with the same trefoil knotted centerline, and it propagates outward and interacts with the knotted vortex tube. This configuration allows the study of flame extinction, flame-flame interaction, and suppression of the vortex reconnection. Using direct numerical simulations, we show that the asymmetric flame propagation along the vortex axis generates helicity, and the baroclinic effect arising from the misalignment between the local density gradient and nonlocal pressure gradient flattens the vortex/flame tubes.