def __init__(self, filename=None, settings_overrides=None): self.overrides = settings_overrides or {} self.overrides.update({"math_output": "MathJax", "syntax_highlight": "short"}) AbstractMarkup.__init__(self, filename) from docutils.core import publish_parts self._publish_parts = publish_parts
def __init__(self, filename=None, extensions=None): AbstractMarkup.__init__(self, filename) import markdown self.markdown = markdown self.requested_extensions = extensions or [] self.global_extensions = self._get_global_extensions(filename) self.document_extensions = [] self._apply_extensions()
def __init__(self, filename=None, extensions=None): AbstractMarkup.__init__(self, filename) import markdown self.markdown = markdown self.requested_extensions = extensions or [] self.global_extensions = [] if extensions is None: self.global_extensions.extend(self._get_global_extensions(filename)) self._apply_extensions()
def __init__(self, filename=None, settings_overrides=None): self.overrides = settings_overrides or {} self.overrides.update({ 'math_output': 'MathJax %s?config=TeX-AMS_CHTML' % common.MATHJAX_WEB_URL, 'syntax_highlight': 'short', }) AbstractMarkup.__init__(self, filename) from docutils.core import publish_parts self._publish_parts = publish_parts
def __init__(self, filename=None, extensions=None): AbstractMarkup.__init__(self, filename) import markdown self.markdown = markdown self.requested_extensions = extensions or [] if extensions is None: self.global_extensions = self._get_global_extensions(filename) else: self.global_extensions = [] self.document_extensions = [] _canonicalized_ext_names = {} self._apply_extensions()
def __init__(self, filename=None, settings_overrides=None): self.overrides = settings_overrides or {} self.overrides.update({ 'math_output': 'MathJax ' + common.MATHJAX_WEB_URL, 'syntax_highlight': 'short', 'halt_level': 5, # Never convert system messages to exceptions 'stylesheet_path': 'minimal.css', # Do not include plain.css }) AbstractMarkup.__init__(self, filename) from docutils.core import publish_parts from docutils.writers.html5_polyglot import Writer self._publish_parts = publish_parts self.writer = Writer() self.writer.translator_class = CustomHTMLTranslator
def __init__(self, filename=None): AbstractMarkup.__init__(self, filename) from textile import textile self.textile = textile
def __init__(self, filename=None): AbstractMarkup.__init__(self, filename) from textile import Textile self.parser = Textile()
def __init__(self, filename=None, settings_overrides=None): self.overrides = settings_overrides or {} self.overrides.update({'math_output': 'MathJax'}) AbstractMarkup.__init__(self, filename) from docutils.core import publish_parts self._publish_parts = publish_parts