Skip to content

Commit dd93740

Browse files
committed
Remove callout lines from copied README.md during build
1 parent c8b785a commit dd93740

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/editor/webpack.config.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ const config = [
7070
from: '../../README.md',
7171
to: '../README.md',
7272
transform(content) {
73-
return content.toString().split('\n').slice(13).join('\n')
73+
return content
74+
.toString()
75+
.split('\n')
76+
.slice(13)
77+
.filter((line) => !['> [!TIP]', '> [!IMPORTANT]', '> [!NOTE]'].includes(line.trim()))
78+
.join('\n')
7479
}
7580
}
7681
]

0 commit comments

Comments
 (0)