Skip to content

Commit d5b3141

Browse files
committed
Preprocess: Remove class attributes from HTML with merged CSS
1 parent 2a9b7d2 commit d5b3141

File tree

2 files changed

+299
-298
lines changed

2 files changed

+299
-298
lines changed

commands/preprocess_cssless.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def preprocess_html_merge_css(src_path, dst_path):
3636

3737
with warnings.catch_warnings():
3838
warnings.simplefilter("ignore")
39-
premailer = Premailer(content, base_url=src_path, preserve_all_links=True)
39+
premailer = Premailer(content, base_url=src_path, preserve_all_links=True,
40+
remove_classes=True)
4041
content = premailer.transform()
4142

4243
head = os.path.dirname(dst_path)

0 commit comments

Comments
 (0)