webpro / reveal-md

reveal.js on steroids! Get beautiful reveal.js presentations from any Markdown file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for `data-line-numbers`

amannn opened this issue · comments

Reveal.js is able to highlight individual lines in code blocks. It would be great if reveal-md would support this with a syntax like this:

```js {2}
const foo = 'foo';
const bar = 'bar'; // I'm highlighted

Hi @amannn! That looks like an interesting feature, and I like the syntax. Feel free to open a pull request :)

Ok, I'll see if I can some time to implement it!

Hi @amannn, this feature already works in reveal-md 🙂 https://revealjs.com/markdown/#syntax-highlighting

```js [1-2|2]
const foo = 'foo';
const bar = 'bar'; // I'm highlighted

@webpro Do you want a chapter in the readme ?

True, that works for me – thanks @niweb21!

Hi @amannn, this feature already works in reveal-md 🙂 https://revealjs.com/markdown/#syntax-highlighting

```js [1-2|2]
const foo = 'foo';
const bar = 'bar'; // I'm highlighted

@webpro Do you want a chapter in the readme ?

That would be great! Thanks for posting the solution here as well, much appreciated :)