Show More
@@ -53,6 +53,8 b' class CustomHTMLTranslator(writers.html4' | |||
|
53 | 53 | Custom HTML Translator used for sandboxing potential |
|
54 | 54 | JS injections in ref links |
|
55 | 55 | """ |
|
56 | def visit_literal_block(self, node): | |
|
57 | self.body.append(self.starttag(node, 'pre', CLASS='codehilite literal-block')) | |
|
56 | 58 | |
|
57 | 59 | def visit_reference(self, node): |
|
58 | 60 | if 'refuri' in node.attributes: |
@@ -423,7 +425,10 b' class MarkupRenderer(object):' | |||
|
423 | 425 | cls.RESTRUCTUREDTEXT_DISALLOWED_DIRECTIVES]) |
|
424 | 426 | |
|
425 | 427 | docutils_settings.update({ |
|
426 |
'input_encoding': 'unicode', |
|
|
428 | 'input_encoding': 'unicode', | |
|
429 | 'report_level': 4, | |
|
430 | 'syntax_highlight': 'short', | |
|
431 | }) | |
|
427 | 432 | |
|
428 | 433 | for k, v in docutils_settings.iteritems(): |
|
429 | 434 | directives.register_directive(k, v) |
General Comments 0
You need to be logged in to leave comments.
Login now