Skip to content

Commit a4c3af5

Browse files
committed
feat: Improve Audit feature with more Figma strings
1 parent 7729cf0 commit a4c3af5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/components/WhatsNew.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ interface Feature {
4040
const showModal = ref<boolean>(false)
4141
4242
const features: Feature[] = [
43+
{
44+
id: 'improve-audit-figma',
45+
type: 'improvement',
46+
title: 'Improve HTML Audit for Figma metadata',
47+
description:
48+
`Improved the Audit feature to search for common <code>data-metadata</code>, <code>data-buffer</code>, <code>&lt;!--(figmeta)</code>, and <code>&lt;!--(figma)</code> patterns. This should help catch more of the bloated HTML attributes that Figma adds when copying content, which can inflate page size and affect Core Web Vital metrics.`,
49+
utcDatetimeAdded: new Date('2026-03-05T18:45:00Z'),
50+
},
4351
{
4452
id: 'component-usage-audit',
4553
type: 'feature',

src/features/audit.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export const UGLY_HTML_PATTERNS = [
5252
'figma=',
5353
'figmeta=',
5454
'data-figma',
55+
'data-metadata',
56+
'data-buffer',
57+
'<!--(figmeta)',
58+
'<!--(figma)',
5559

5660
// Google Docs attributes
5761
'google-',

0 commit comments

Comments
 (0)