For some reason Wordpress auto-wraps parts of the Javascript code in <p> Tags. Any tips what I can try to clear this up? I have a current version of WP and your plugin. The content gets no special treatment and is just output with the_content().
This of course causes an error and the map never shows on the page.
Update:
I do in fact process the blocks, by passing them through render_block() inside add_filter('the_content', …). I disabled that and the map shows up fine. I don't know why that would be different than what Wordpress does during render anyway, but it fixed the issue. Luckily, I was in a position where removing the filter was possible.
For some reason Wordpress auto-wraps parts of the Javascript code in
<p>
Tags. Any tips what I can try to clear this up? I have a current version of WP and your plugin. The content gets no special treatment and is just output withthe_content()
.This of course causes an error and the map never shows on the page.
Update:
I do in fact process the blocks, by passing them through
render_block()
insideadd_filter('the_content', …)
. I disabled that and the map shows up fine. I don't know why that would be different than what Wordpress does during render anyway, but it fixed the issue. Luckily, I was in a position where removing the filter was possible.