It's not a bug but normal Markdown behavior. The editor buttons are aware of formatting not carrying through paragpaph breaks, so it reapplies for every selected paragraph. Whether such behavior is desired or not is another question...