added initialstate option

I've added an initialstate option, this way you can define the state the new markdown element will be loaded in!