Convert markdownpreview view to Twig