A new treatment of telluric and stellar features for medium-resolution spectroscopy and molecular mapping | Synapse