Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(astro): preserve file path for imported file code blocks#446

Merged
AriPerkkio merged 3 commits into
stackblitz:mainstackblitz/tutorialkit:mainfrom
isaacplmann:preserve-import-file-pathisaacplmann/tutorialkit:preserve-import-file-pathCopy head branch name to clipboard
Apr 14, 2025
Merged

feat(astro): preserve file path for imported file code blocks#446
AriPerkkio merged 3 commits into
stackblitz:mainstackblitz/tutorialkit:mainfrom
isaacplmann:preserve-import-file-pathisaacplmann/tutorialkit:preserve-import-file-pathCopy head branch name to clipboard

Conversation

@isaacplmann
Copy link
Copy Markdown
Contributor

I would like to write an expressive code plugin that behaves differently for code blocks that were imported from the file system. However, the import file logic removes all information about the file path before the expressive code plugins are called.

This change preserves that information so that expressive code plugins can access it.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Comment thread packages/astro/src/remark/import-file.ts
@AriPerkkio AriPerkkio merged commit df69da2 into stackblitz:main Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.