We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d586225 commit df69da2Copy full SHA for df69da2
packages/astro/src/remark/import-file.ts
@@ -48,6 +48,8 @@ export function remarkImportFilePlugin(options: RemarkImportFilePluginOptions) {
48
49
if (content) {
50
node.value = content;
51
+ node.meta ||= '';
52
+ node.meta += ' path=' + node.lang;
53
node.lang = path.extname(relativeFilePath).slice(1);
54
}
55
0 commit comments