|  | 
| 17 | 17 | from jinja2 import ( | 
| 18 | 18 |     Environment, FileSystemLoader, Undefined, DebugUndefined, StrictUndefined, | 
| 19 | 19 | ) | 
| 20 |  | -from super_collections import SuperDict | 
|  | 20 | +from super_collections import SuperDict, yaml_support | 
|  | 21 | +yaml_support() | 
| 21 | 22 | 
 | 
| 22 | 23 | from mkdocs.config import config_options | 
| 23 | 24 | from mkdocs.config.config_options import Type as PluginType | 
|  | 
| 29 | 30 | from mkdocs_macros.util import ( | 
| 30 | 31 |     install_package, parse_package, trace, debug, | 
| 31 | 32 |     update, import_local_module, format_chatter, LOG, get_log_level, | 
| 32 |  | -    setup_directory, CustomEncoder, | 
|  | 33 | +    setup_directory | 
| 33 | 34 |     # SuperDict,  | 
| 34 | 35 | ) | 
| 35 | 36 | 
 | 
| @@ -881,16 +882,13 @@ def on_pre_build(self, *, config): | 
| 881 | 882 |         after the execution of the `on_config()` of this plugin. | 
| 882 | 883 |         """ | 
| 883 | 884 |         trace("Config variables:", list(self.variables.keys())) | 
| 884 |  | -        debug("Config variables:\n", payload=json.dumps(self.variables,  | 
| 885 |  | -                                                    cls=CustomEncoder)) | 
|  | 885 | +        debug("Config variables:\n", payload=SuperDict(self.variables).to_json()) | 
| 886 | 886 |         if self.macros: | 
| 887 | 887 |             trace("Config macros:", list(self.macros.keys())) | 
| 888 |  | -            debug("Config macros:", payload=json.dumps(self.macros, | 
| 889 |  | -                                                    cls=CustomEncoder)) | 
|  | 888 | +            debug("Config macros:", payload=SuperDict(self.macros).to_json()) | 
| 890 | 889 |         if self.filters: | 
| 891 | 890 |             trace("Config filters:", list(self.filters.keys())) | 
| 892 |  | -            debug("Config filters:", payload=json.dumps(self.filters, | 
| 893 |  | -                                                    cls=CustomEncoder)) | 
|  | 891 | +            debug("Config filters:", payload=SuperDict(self.filters).to_json()) | 
| 894 | 892 | 
 | 
| 895 | 893 | 
 | 
| 896 | 894 |     def on_nav(self, nav, config, files): | 
|  | 
0 commit comments