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 for data-line-numbers #414

Closed
amannn opened this issue May 20, 2022 · 5 comments
Closed

Support for data-line-numbers #414

amannn opened this issue May 20, 2022 · 5 comments

Comments

@amannn
Copy link

amannn commented May 20, 2022

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
@webpro
Copy link
Owner

webpro commented May 21, 2022

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

@amannn
Copy link
Author

amannn commented May 23, 2022

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

@niweb21
Copy link

niweb21 commented Jun 7, 2022

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 ?

@amannn
Copy link
Author

amannn commented Jun 7, 2022

True, that works for me – thanks @niweb21!

@webpro
Copy link
Owner

webpro commented Jun 8, 2022

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 :)

Artmorse added a commit to Artmorse/reveal-md that referenced this issue Aug 8, 2022
@webpro webpro closed this as completed Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants