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

Is there any way to focus lines of code without shifting the code block? #120

Open
rbalicki2 opened this issue Aug 29, 2024 · 0 comments
Open

Comments

@rbalicki2
Copy link

rbalicki2 commented Aug 29, 2024

Let's say I have two pages with the same code block containing two lines, and I'd like to emphasize line 1 on page 1 and line 2 on page 2. If I do that currently, the code shifts by about a line between slides, so that the emphasized line is in the middle.

Is there any way to avoid that layout shift?

What I'm currently doing is adding empty lines to the code block, which are always emphasized, e.g.:

three backticks jsx 1,2,4

1 # this is line 2, and is the only line I'm "actually" emphasizing
2

three backticks

But this requires me to disable formatting on save :/

Is there a more idiomatic way to do this?

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

1 participant