modified init for markdown