MCPcopy
hub / github.com/Python-Markdown/markdown / __init__

Method __init__

markdown/extensions/smarty.py:183–194  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

181class SmartyExtension(Extension):
182 """ Add Smarty to Markdown. """
183 def __init__(self, **kwargs):
184 self.config = {
185 'smart_quotes': [True, 'Educate quotes'],
186 'smart_angled_quotes': [False, 'Educate angled quotes'],
187 'smart_dashes': [True, 'Educate dashes'],
188 'smart_ellipses': [True, 'Educate ellipses'],
189 'substitutions': [{}, 'Overwrite default substitutions'],
190 }
191 """ Default configuration options. """
192 super().__init__(**kwargs)
193 self.substitutions: dict[str, str] = dict(substitutions)
194 self.substitutions.update(self.getConfig('substitutions', default={}))
195
196 def _addPatterns(
197 self,

Callers 1

__init__Method · 0.45

Calls 1

getConfigMethod · 0.80

Tested by

no test coverage detected