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

Add line highlighting in code blocks #89

Closed
d0c-s4vage opened this issue Jul 21, 2020 · 1 comment
Closed

Add line highlighting in code blocks #89

d0c-s4vage opened this issue Jul 21, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@d0c-s4vage
Copy link
Owner

d0c-s4vage commented Jul 21, 2020

Describe the Feature Request
Lines should be able to be highlighted within code blocks. We should also be able to specify that line numbers should be visible in the code blocks.

Example Markdown

Screenshot/Wireframe
If applicable, add screenshots to help explain your proposed feature.

Additional notes
Add any other notes about the feature here.

@d0c-s4vage d0c-s4vage added the enhancement New feature or request label Jul 21, 2020
@d0c-s4vage d0c-s4vage added this to the v3.0 milestone Oct 1, 2022
@d0c-s4vage d0c-s4vage self-assigned this Nov 10, 2022
d0c-s4vage added a commit that referenced this issue Dec 11, 2022
Adds the ability to enable line numbers in code blocks and highlight lines

Specifically:
* Curly brace attributes on code blocks are now supported
* the theme can now be set in the YAML metadata:
  ```yaml
  ---
  theme: light
  ---
  ```
* a new `styles.code` YAML metadata value can be used:
  ```markdown
  ---
  styles:
    code:
      style: zenburn
      inline_lang: python
      bg_override: "#aabbcc"
  ---
  ```
* the `--style` CLI argument is removed (should be replaced by the feature described in #190)

See #164
See #89
@d0c-s4vage
Copy link
Owner Author

Done with #189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant