Skip to content

More flexible !from directive #510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025
Merged

More flexible !from directive #510

merged 2 commits into from
Apr 30, 2025

Conversation

pomber
Copy link
Contributor

@pomber pomber commented Apr 30, 2025

Fix #439

Now we can mix !from with more code, annotations, or even more !from directives

```py
# !mark(2) bar
!from ./assets/test1.py

def hello():
    print("hello")

!from ./assets/test2.py
```

Copy link

vercel bot commented Apr 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codehike.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 9:54am

@github-actions github-actions bot added the changeset PR including changesets label Apr 30, 2025
Copy link
Contributor

Try codehike from this pull request in your project with:

npm i https://pkg.pr.new/codehike@510

@pomber pomber merged commit 2f5c974 into next Apr 30, 2025
4 checks passed
@pomber pomber deleted the better-from branch April 30, 2025 09:55
@pomber pomber mentioned this pull request May 1, 2025
@github-actions github-actions bot removed the changeset PR including changesets label May 1, 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.

Annotations doesn't seems to work when importing code from a file into a codeblock
1 participant