Hi all
I am new to Hugo. I have been using Nikola for my blog but am looking at moving over. I use Jupyter notebooks for a lot of my notebooks, and these in turn often have renderings of pandas dataframes, which get rendered as HTML divs that contain a style element and a table element.
<div>
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
...
</table>
</div>
In Hugo these are getting rendered completely wrong. The contents of the style element are being included in the output as text, while the table is not rendered at all.
I’ve seen the comments about setting the renderer to allow unsafe HTML and already have this in my config.yaml file:
markup:
goldmark:
renderer:
unsafe: true
It sounds like that should fix things but it doesn’t. Any suggestions?
Thanks
G.