Suppose that $X,Y$ are - say - normed vector spaces.
Let $f:X\to Y$ be such that for all sets $K\subset X$: $$f(K) \text{ compact}\iff K\text{ compact}.$$
Does it hold that $f$ is continuous?
Addendum: What if $X,Y$ are Hausdorff spaces?
————
Intuitively it seems that this is wrong because there are both proper maps which are not continuous and maps that compact sets to compact sets which are also not continuous.
However, if $f$ is a compact injection then $f$ is continuous.