orzih / mkdocs-with-pdf

Generate a single PDF file from MkDocs repository.
MIT License
324 stars 76 forks source link

Bug building the doc with render_js: true throw AttributeError #114

Open samuel-cavalcanti opened 2 years ago

samuel-cavalcanti commented 2 years ago

generator.py

 if len(self._mixed_script) > 0:
                    tag = soup.new_tag('script')
                    tag.text = self._mixed_script
                    body.append(tag)

The atribute .text is only a getter. Please consider to update this line to:

  tag.append(self._mixed_script)