That'll be the elves that Adobe employ.
They look at the source topic and the template that is in the
source and then create a topic in the output that contains all the
information to display the topic as you want it.
I believe they use smoke and mirrors to do this. :-)
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.