azu / azu/gitbook-plugin-include-codeblock

slide syntax should support `[import:1]`

Open
#69 0 comments 0 reactions 0 assignees View on GitHub
feature-proposal
Dominant language
JavaScript
Stars
40
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Currently, support following patterns.

```
All: [import, hello-world.js](../src/hello-world.js)
1-2: [import:1-2, hello-world.js](../src/hello-world.js)
2-3: [import:2-3, hello-world.js](../src/hello-world.js)
2>=: [import:2-, hello-world.js](../src/hello-world.js)
<=3: [import:-3, hello-world.js](../src/hello-world.js)
```

We want to add following pattern:

```
1: [import:1, hello-world.js](../src/hello-world.js)
```

It is a alias of that

```
1: [import:1-1, hello-world.js](../src/hello-world.js)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the parser or tests that handle the existing import range forms shown in the issue. Add coverage for [import:1] and verify that it behaves the same as [import:1-1], including the expected included line.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.