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
示例#2
0
	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()
示例#3
0
	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()
示例#4
0
 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
示例#5
0
	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()
示例#6
0
 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
示例#7
0
 def __init__(self, filename=None):
     AbstractMarkup.__init__(self, filename)
     from textile import textile
     self.textile = textile
示例#8
0
    def __init__(self, filename=None):
        AbstractMarkup.__init__(self, filename)
        from textile import Textile

        self.parser = Textile()
示例#9
0
	def __init__(self, filename=None):
		AbstractMarkup.__init__(self, filename)
		from textile import textile
		self.textile = textile
示例#10
0
	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