Goldmark: Javascript does not render

Previously I had the following javascript content within a .md post and it rendered just fine with the blackFriday markdown renderer:

<script src="https://bibbase.org/show?bib=https%3A%2F%2Fapi.zotero.org%2Fusers%2F4816857%2Fcollections%2F35DMSIF4%2Fitems%3Fkey%3DHKGMmOtRP5yfzX8wL1j6F8bu%26format%3Dbibtex%26limit%3D100&jsonp=1"></script>

However, with goldmark I only get a blank space, not even an error.
Does goldmark not support JS? If it does, how can I get it working?

Enable “unsafe” in the config. See docs.

Thanks. Apparently I had unsafe = true but the config.toml was misconfigured so it was not picked up :confused:

1 Like