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

3.0 - Change the --style CLI argument to set styles via dot-notation #190

Open
d0c-s4vage opened this issue Dec 11, 2022 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@d0c-s4vage
Copy link
Owner

Describe the Feature Request

The --style CLI argument should use dot notation to set specific fields, optionally as a JSON blob:

Example

lookatme --style code.style=monokai --style code.inline_lang=python

or

lookatme --style code={"style": "monokai", "inline_lang": "python"}

Notes

This would be a breaking change and should go into the 3.0 version of lookatme

@d0c-s4vage d0c-s4vage added the enhancement New feature or request label Dec 11, 2022
@d0c-s4vage d0c-s4vage added this to the v3.0 milestone Dec 11, 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
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