Smart markdown insert - Add badge to existing badges
The badge will be added to the last of existing badges.
Fixes #4 (closed), #22 (closed), #31 (closed), #36 (closed), #39 (closed), #40 (closed)
Add the second commit to fixes #9 (closed), #12 (closed), #38 (closed), #43 (closed)