Skip to content

Use lighter annotations #398

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 5 commits into from
Jul 10, 2023
Merged

Use lighter annotations #398

merged 5 commits into from
Jul 10, 2023

Conversation

pomber
Copy link
Contributor

@pomber pomber commented Jul 7, 2023

Support all comment syntaxes for annotations. (fix #109)

```html hello.html
<!-- mark[6:14] -->
<div>Code Hike</div>
```

```jsonc
{
  // mark[12:20]
  "name": "Code Hike"
}
```

```lua
-- mark[8:16]
print("Code Hike")
```

```matlab
% mark[7:15]
disp('Code Hike')
```

```lisp
; mark[9:17]
(print "Code Hike")
```

Also, support inline annotations.

```css
body {
  margin: 12px; /* mark[11:14] */
}
```
📦 Published PR as canary version: 0.10.0--canary.398.4667c0f.0

✨ Test out this PR locally via:

npm install @code-hike/mdx@0.10.0--canary.398.4667c0f.0
# or 
yarn add @code-hike/mdx@0.10.0--canary.398.4667c0f.0

Version

Published prerelease version: v0.10.0-next.0

Changelog

🚀 Enhancement

  • @code-hike/mdx

🐛 Bug Fix

⚠️ Pushed to next

  • Remove examples from workspace (@pomber)
  • Add backticks to release message (@pomber)

Authors: 2

@vercel
Copy link

vercel bot commented Jul 7, 2023

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

Name Status Preview Comments Updated (UTC)
chtest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2023 8:46am
playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2023 8:46am

@vercel vercel bot temporarily deployed to Preview – chtest July 7, 2023 17:39 Inactive
@pomber pomber added minor release PR created automatically for new releases labels Jul 7, 2023
@vercel vercel bot temporarily deployed to Preview – playground July 7, 2023 17:41 Inactive
@vercel vercel bot temporarily deployed to Preview – playground July 7, 2023 17:47 Inactive
@vercel vercel bot temporarily deployed to Preview – chtest July 7, 2023 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview – playground July 8, 2023 09:41 Inactive
@vercel vercel bot temporarily deployed to Preview – chtest July 8, 2023 09:42 Inactive
@vercel vercel bot temporarily deployed to Preview – chtest July 9, 2023 08:44 Inactive
@vercel vercel bot temporarily deployed to Preview – playground July 9, 2023 08:46 Inactive
@pomber pomber merged commit fecddba into next Jul 10, 2023
@github-actions
Copy link
Contributor

Released in v0.10.0-next.0 🚀

Thanks for using Code Hike! Become a sponsor and help us keep innovating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release PR created automatically for new releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[mdx] Support more comment syntaxes
1 participant