updated version of marked to support customizing markdown templates