File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,19 @@ def normalize_html(html):
163
163
parent = e .parent
164
164
e .unwrap ()
165
165
parent .smooth ()
166
+ # Asciidoctor suppports adding a `<meta name="description"` if a book
167
+ # defines a `:description:` attribute. Docbook doesn't. We're quite ok with
168
+ # adding it but we can ignore it in the diff because, well, we don't need
169
+ # to see it.
170
+ for e in soup .select ("meta[name='description']" ):
171
+ e .extract ()
172
+ # Docbook renders "indexterms" with an inline anchor and asciidoctor
173
+ # doesn't. You can't see them and no one is linking to them and the links
174
+ # don't really do anything. So we're ok ignoring them.
175
+ for e in soup .select ("a.indexterm" ):
176
+ parent = e .parent
177
+ e .extract ()
178
+ parent .smooth ()
166
179
167
180
# Remove empty "class" attributes and sort the listed classes.
168
181
for e in soup .select ('*' ):
You can’t perform that action at this time.
0 commit comments