Skip to content

Commit 2a8257b

Browse files
committed
update code blocks to render with syntax highlighting
1 parent 15bdfba commit 2a8257b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

nbmail/compose/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The `compose` module provides a high-level, Pythonic API for building HTML email
44

55
## Quick Start
66

7-
```{python}
7+
```python
88
from nbmail.compose import compose_email, block_text, block_title, create_blocks
99

1010
# Simple email

nbmail/mjml/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ This module provides Python functions for creating MJML markup, the responsive e
1616

1717
This module is part of the `nbmail` package:
1818

19-
```{python}
19+
```python
2020
from nbmail import mjml as mj
2121
```
2222

2323
## Quick Start
2424

25-
```{python}
25+
```python
2626
from nbmail.mjml import mjml, body, section, column, text
2727

2828
# Build an MJML email structure
@@ -49,7 +49,7 @@ These tags accept children (other MJML components) and optional content:
4949
- Configuration: `attributes`, `breakpoint`, `font`, `html_attributes`, `style`, `title`
5050

5151
Example:
52-
```{python}
52+
```python
5353
from nbmail.mjml import mjml, body, section, column, text
5454

5555
# Build an MJML email structure
@@ -78,7 +78,7 @@ These tags accept text or HTML content but **not** MJML children:
7878
- `carousel_image` - Carousel images
7979

8080
Example:
81-
```{python}
81+
```python
8282
text(
8383
content="<strong>Bold text</strong> and <a href='#'>a link</a>",
8484
attributes={"font_size": "16px", "color": "#333333"}
@@ -94,7 +94,7 @@ button(
9494

9595
### Simple Email
9696

97-
```{python}
97+
```python
9898
from nbmail.mjml import mjml, head, body, section, column, text, title
9999

100100
mjml_email = mjml(
@@ -113,7 +113,7 @@ mjml_email = mjml(
113113

114114
### Multi-column Layout
115115

116-
```{python}
116+
```python
117117
from nbmail.mjml import body, section, column, text, image
118118

119119
layout = body(
@@ -134,7 +134,7 @@ layout = body(
134134

135135
### Using Attributes
136136

137-
```{python}
137+
```python
138138
from nbmail.mjml import section, column, text
139139

140140
# Using attributes parameter

0 commit comments

Comments
 (0)