Skip to content
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

Support unique callouts for enhanced code blocks #209

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

Mpdreamz
Copy link
Member

Updated logic to handle unique callouts by index and ensure proper rendering in HTML. Adjusted tests to validate the new behavior and improved error handling for mismatched annotations and lists.

This now also support reusing callouts e.g

```js
var x = 1; <1>
var y = x - 2; <2>
var z = y - 2; <2>
```
1. a
2. b

Updated logic to handle unique callouts by index and ensure proper rendering in HTML. Adjusted tests to validate the new behavior and improved error handling for mismatched annotations and lists.

This now also support reusing callouts e.g

````markdown
```js
var x = 1; <1>
var y = x - 2; <2>
var z = y - 2; <2>
```
1. a
2. b
````
@Mpdreamz Mpdreamz added the fix label Jan 15, 2025
@Mpdreamz Mpdreamz requested a review from reakaleek January 15, 2025 12:42
@Mpdreamz Mpdreamz merged commit af9c7e0 into main Jan 15, 2025
4 of 5 checks passed
@Mpdreamz Mpdreamz deleted the feature/code-callout-uniqeness branch January 15, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants