Here is a link to a post describing similar capabilities in Scrivener. We unfortunately do not have exactly what you want, which requires something that has a much greater awareness of line level elements than Scrivener has.
But while it is missing a few of the “luxuries” of your idea, like seeing and editing this text inline, it has all of the same functional qualities when compiling .And when using the hyperlinked variant of the <$include> placeholder, depending on how you set up links to work in the Behaviors: Document Links settings tab, they can still be quite conveniently referenced and edited. Copyholders, for example, are fairly unobtrusive as a “window in a window” type view.
For straight building of lists of items though, the Collections feature, referred to in that post, is the closest things to actual clones.