Closed nint8835 closed 1 year ago
I came to a conclusion that we'll never get rid of strings being put into extra_javascript
, so instead it will be officially embraced.
MkDocs itself will now also normally put strings into the list. So perhaps nothing to do here.
Late reply, but thanks both!
Indeed currently using strings in extra_javascript
:
As of mkdocs 1.5,
extra_javascript
after the config is no longer an array of strings, but is instead a list ofExtraScriptValue
.Mkdocs appears to have fallback logic that handles the strings this plugin inserts into the list, but it can cause issues for plugins that assume all objects in the list are of the expected type (such as Material for Mkdocs, which is how I encountered this https://github.com/squidfunk/mkdocs-material/issues/5778)