We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963abde commit 1f5ec3bCopy full SHA for 1f5ec3b
src/pdf.py
@@ -72,6 +72,10 @@ def transform_book_content(path_file):
72
node['src'] = node["src"][7:]
73
node['data-dark-src'] = node["data-dark-src"][7:]
74
75
+ for page in soup.select('[id="test-page.md"], [id="kotlin-brand-assets.md-kotlin-night-brand-assets"]'):
76
+ print("Drop %s" % page['id'])
77
+ page.find_parent('section').decompose()
78
+
79
result_file = get_tmp_filename(path_file)
80
81
with open(result_file, "w", encoding='utf-8') as output:
0 commit comments