Closed d0c-s4vage closed 1 year ago
From this markdown:
---
theme: dark
styles:
slides:
fg: "#c0c08f"
code:
style: monokai
inline_lang: python
bg_override: "#302030"
---
The `a = 100 * "hello"` metadata that can be prefixed in slides includes these top level
fields:
```python {.numberLines startFrom="1" hllines=1,5,7-9 .nobackground}
def hello():
"""Text
"""
# comment
print("Hello world")
print("Hello world")
a = 1 * 20 + 30
X = 1 * 20 + 30
y = 1 * 20 + 30
a = 1 * 20 + 30
k = 1 * 20 + 30
```
You get this:
Note: this PR includes breaking changes to how syntax highlighting styles are defined:
--style
CLI argument is removed (should be replaced by the feature described in #190)styles.code
YAML metadata value can be used:styles:
code:
style: zenburn
inline_lang: python
bg_override: "#aabbcc"
Adds the ability to enable line numbers in code blocks and highlight lines
Specifically:
styles.code
YAML metadata value can be used:--style
CLI argument is removed (should be replaced by the feature described in #190)See #164 See #89