Loop through a collection of configuration options, passing each to [`setConfig`][markdown.extensions.Extension.setConfig]. Arguments: items: Collection of configuration options. Raises: KeyError: for any unknown key.
(self, items: Mapping[str, Any] | Iterable[tuple[str, Any]])
| 113 | self.config[key][0] = value |
| 114 | |
| 115 | def setConfigs(self, items: Mapping[str, Any] | Iterable[tuple[str, Any]]) -> None: |
| 116 | """ |
| 117 | Loop through a collection of configuration options, passing each to |
| 118 | [`setConfig`][markdown.extensions.Extension.setConfig]. |
| 119 | |
| 120 | Arguments: |
| 121 | items: Collection of configuration options. |
| 122 | |
| 123 | Raises: |
| 124 | KeyError: for any unknown key. |
| 125 | """ |
| 126 | if hasattr(items, 'items'): |
| 127 | # it's a dict |
| 128 | items = items.items() |
| 129 | for key, value in items: |
| 130 | self.setConfig(key, value) |
| 131 | |
| 132 | def extendMarkdown(self, md: Markdown) -> None: |
| 133 | """ |