Link to specific html sections from admin panel / markdown?

Hi, I don’t know if I’ve missed something really obvious here but how can I add some html code to my twig file and then link markdown text directly to those different bits of html?

For example I have an accordion section on one page, how do I get my text into each bit? or is hardcoding the html the only way to go?

You could hardcode, or try the Anchors plugin which does this for you (through AnchorJS).