The first one is the note name, and the second one is the H1 heading. It is a default setting, nothing wrong here. If you don't want it duplicate, there are three solutions.
Remove the H1 heading.
Use H1 for a different headline.
Use external CSS to hide the note name.
About the third one:
you should go to tools > options > appearance > show advanced settings > Custom stylesheet for rendered markdown