mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
url_previews: Post-process embed links for performant CSS.
This commit is contained in:
@@ -211,6 +211,7 @@ js_rules = RuleList(
|
||||
"description": "Avoid using the `style=` attribute; we prefer styling in CSS files",
|
||||
"exclude": {
|
||||
"web/tests/compose_paste.test.cjs",
|
||||
"web/tests/postprocess_content.test.cjs",
|
||||
},
|
||||
"good_lines": ["#my-style {color: blue;}", "const style =", 'some_style = "test"'],
|
||||
"bad_lines": ['<p style="color: blue;">Foo</p>', 'style = "color: blue;"'],
|
||||
|
Reference in New Issue
Block a user