@diplodoc/transform 4.31.1 → 4.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ export type ArgvSettings = {
5
5
  substitutions?: boolean;
6
6
  keepNotVar?: boolean;
7
7
  withSourceMap?: boolean;
8
+ useLegacyConditions?: boolean;
8
9
  };
9
10
 
10
11
  let _argv: ArgvSettings;
@@ -560,7 +560,9 @@ function sanitizeStyleTags(dom: cheerio.CheerioAPI, cssWhiteList: CssWhiteList)
560
560
  });
561
561
 
562
562
  dom(element).text(css.stringify(parsedCSS));
563
- } catch {}
563
+ } catch {
564
+ dom(element).remove();
565
+ }
564
566
  });
565
567
  }
566
568