diff --git a/frontends/src/jp/cmd_blog.py b/frontends/src/jp/cmd_blog.py index ce0207d3..0d7fc853 100644 --- a/frontends/src/jp/cmd_blog.py +++ b/frontends/src/jp/cmd_blog.py @@ -343,7 +343,9 @@ class Preview(base.CommandBase, BlogCommon): if syntax != 'XHTML': with open(current_file_path, 'rb') as f: - content_xhtml = self.host.bridge.syntaxConvert(f.read(), syntax, 'XHTML', False, self.profile) + # we use safe=True because we want to have a preview as close as possible to what the + # people will see + content_xhtml = self.host.bridge.syntaxConvert(f.read(), syntax, 'XHTML', True, self.profile) # at this point the syntax is converted, we can display the preview