quarto-dev / quarto-dev/quarto-cli

Code Line Number Links in RevealJS Presentation

Open
#1,427 1 comment 2 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since Jul 16, 2022.

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

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1413

Originally posted by jmgirard July 15, 2022
The line numbers in a code block are automatically linked to #cb1-1, #cb1-2, etc. But these don't really work in the context of a RevealJS Presentation. Clicking the links just brings you back to the first/title slide. Can we get the option to disable code line number links?

---
title: "Untitled"
format: revealjs
---

```{r}
#| echo: true
#| eval: false
1
2
3
```

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.