There are several ways to use superscript in markdown, none of them unanimously accepted.
A good choice seems this code $^2$ : better than <sup>2</sup>,
- because of its brevity,
- and because it can be rendered from good markdown editors/viewers such as Zettlr, Typora or MarkFlowy.