Bug in Table of Contents Block
-
If I add the “table of contents block” to my own post, the website breaks due to a javascript error:
wordpress JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 4172 of the JSON data wp-table-of-contents
This is because you try to parse the JSON content of the headers, these are the headings of the post. However, if you include symbols like
>
or<
(bigger than), it will result into the error above within your javascript code.I needed to change my heading title in order to use the Table of Contents block.
Thanks in advance, for fixing this issue!
Regards,
Melroy vd Berg
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Bug in Table of Contents Block’ is closed to new replies.