better markdown own lib and map fixes