We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d118a4b + df69da2 commit f5fcd31Copy full SHA for f5fcd31
1 file changed
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