diff --git a/mkdocs_with_pdf/generator.py b/mkdocs_with_pdf/generator.py index c9a331bf..467f90d1 100644 --- a/mkdocs_with_pdf/generator.py +++ b/mkdocs_with_pdf/generator.py @@ -378,7 +378,7 @@ def _render_js(self, soup): body.append(script) if len(self._mixed_script) > 0: tag = soup.new_tag('script') - tag.text = self._mixed_script + tag.append(self._mixed_script) body.append(tag) for src in scripts: body.append(soup.new_tag('script', src=f'file://{src}'))