diff --git a/package.py b/package.py index 7b10a32c0c9f..c5a4131c1237 100644 --- a/package.py +++ b/package.py @@ -39,6 +39,13 @@ tag.name = "tt" [x.unwrap() if x.name else x for x in tag.contents] + for tag in contents.findAll("div", class_="highlight-default"): + tag.div.unwrap() + tag.pre.unwrap() + tag.name = "pre" + tag["class"] = "literal-block" + tag.string = "\n" + tag.text.strip() + "\n" + # Remove Sphinx Header contents.h1.decompose()