Skip to content

Commit f5fcd31

Browse files
authored
Merge branch 'main' into minimize-preview-panel
2 parents d118a4b + df69da2 commit f5fcd31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

4949
if (content) {
5050
node.value = content;
51+
node.meta ||= '';
52+
node.meta += ' path=' + node.lang;
5153
node.lang = path.extname(relativeFilePath).slice(1);
5254
}
5355
}

0 commit comments

Comments
 (0)