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

Trying to change code block style breaks lookatme #223

Open
handdara opened this issue Oct 22, 2023 · 0 comments
Open

Trying to change code block style breaks lookatme #223

handdara opened this issue Oct 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@handdara
Copy link

Describe the bug
Tried to change the color style of a code block. Broke the program at start (see screenshot).
In the example I use the emacs format, but I tried with a bunch and the only one that worked was monokai.

To Reproduce

Steps to reproduce the behavior:
0. Downgrade PyYAML to 5.3.1 (had to do this get it working, I'm also using 3.0 version of lookatme to because 2.5.5 wouldn't work either)

  1. Make file minimal.md with contents show in spoiler at bottom
  2. Run lookatme minimal.md
  3. Run lookatme minimal.md --log out.log to get log

Expected behavior
Simply changes the color theme/style of a code block

Screenshots
Output in terminal is same as in log, so I'll just paste log, the only change is I scrubbed the home directory name:
image

Environment (please complete the following information):

  • OS: Ubuntu 22.04
  • lookatme, version 3.0.0-rc5

Additional context

minimal.md

---
author: handdara
title: Teaching C! 
styles:
  code:
    style: emacs
---

# Minimal example

---

# An example C function

\```c
int foo(int a) {
  return a + 50;
}
\```

*Note: the backslash in front of the backticks is because I couldn't figure out how to get the "codeblock within a codeblock" to escape the inner block. They're not there in the actual file.*
@handdara handdara added the bug Something isn't working label Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant