code-hike / codehike

Build rich content websites with Markdown and React
https://codehike.org
MIT License
4.74k stars 147 forks source link

Spotlight empty code blocks not working #191

Closed pomber closed 2 years ago

pomber commented 2 years ago

Empty codeblocks with no filename not working as intended inside Spotlight (probably same for Scrollycoding):

<CH.Spotlight>

```text 
123456789
123456789
123456789
123456789
123456789
123456789
123456789
```

---

```text focus=1:5
```

focus=1:5

---

```text focus=1,2,3
```

focus=1,2,3

---

```text focus=2[1:6]
```

focus=2[1:6]

</CH.Spotlight>

Playground demo

github-actions[bot] commented 2 years ago

:rocket: Issue was released in v0.6.0 :rocket: