I'm currently creating an mkdocs tool using your plugin and I have 2 suggestions to submit to you.
Add yaml_encoding:
A colleague of mine ran into some troubles because the MacrosPlugin._load_yaml method is calling open(...) without encoding. So I added a config variable for that, defaulting to empty string. If empty string is found, the default encoding is used, to mimic the original behavior, otherwise, the value given in mkdocs.yml will be used
Add on_error_reraise:
In my current project, I'd like to actually directly raise errors during rendering operations, instead of the "double error message" due to formatting, then exiting. So I added this new configuration variable.
Hello,
I'm currently creating an mkdocs tool using your plugin and I have 2 suggestions to submit to you.
Add
yaml_encoding
:A colleague of mine ran into some troubles because the
MacrosPlugin._load_yaml
method is callingopen(...)
without encoding. So I added a config variable for that, defaulting to empty string. If empty string is found, the default encoding is used, to mimic the original behavior, otherwise, the value given in mkdocs.yml will be usedAdd
on_error_reraise
:In my current project, I'd like to actually directly raise errors during rendering operations, instead of the "double error message" due to formatting, then exiting. So I added this new configuration variable.
Is that fine for you?
Regards, FredZinelli