Skip to content

Commit cc4678e

Browse files
committed
chore(astro): changes from review
1 parent a3c7a5f commit cc4678e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/astro/src/remark/import-file.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export function remarkImportFilePlugin(options: RemarkImportFilePluginOptions) {
4848

4949
if (content) {
5050
node.value = content;
51+
node.meta ||= '';
5152
node.meta += ' path=' + node.lang;
5253
node.lang = path.extname(relativeFilePath).slice(1);
5354
}

0 commit comments

Comments
 (0)