MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / set

Method set

markdown_it/main.py:94–102  ·  view source on GitHub ↗

Set parser options (in the same format as in constructor). Probably, you will never need it, but you can change options after constructor call. __Note:__ To achieve the best possible performance, don't modify a `markdown-it` instance options on the fly. If you need multiple

(self, options: OptionsType)

Source from the content-addressed store, hash-verified

92 }[name]
93
94 def set(self, options: OptionsType) -> None:
95 """Set parser options (in the same format as in constructor).
96 Probably, you will never need it, but you can change options after constructor call.
97
98 __Note:__ To achieve the best possible performance, don't modify a
99 `markdown-it` instance options on the fly. If you need multiple configurations
100 it's best to create multiple instances and initialize each with separate config.
101 """
102 self.options = OptionsDict(options)
103
104 def configure(
105 self, presets: str | PresetType, options_update: Mapping[str, Any] | None = None

Callers 1

configureMethod · 0.95

Calls 1

OptionsDictClass · 0.85

Tested by

no test coverage detected