fixed a strong typo: used `topic_id` instead of `post_id`
Changed the markup parser handling for the twig template engine