[FR] Support line number offset for code blocks in revealjs

Open
#1,454 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
web-dev

Research direction

Start with the linked reveal.js code block documentation and the 4.2.0 changelog, then trace where quarto-cli renders reveal.js code chunks. Identify how the line-number offset option should be passed for multiple chunks from one file; done means reveal.js output honors the requested starting line number.

Written by the indexing model from the issue text.

Description

enhancement revealjs
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1451

Originally posted by andrewpbray July 19, 2022
Version 4.2.0 of revealjs implemented a feature that allows you to specify the line number on which a code chunk will start. I don't see it as a must-have feature, but it'd be helpful when displaying more than one chunk of code from the same file.

Description of feature: https://revealjs.com/code/#line-number-offset-4.2.0

Changelog: https://github.com/hakimel/reveal.js/releases/tag/4.2.0

Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto-cli

All issues in quarto-dev/quarto-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.