Skip to content

Commit d953943

Browse files
committed
showing off sibuya's code blocks
1 parent bf9ec9c commit d953943

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

learning-path/beginner.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,18 @@ eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum
1313
primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh.
1414
Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non
1515
diam sodales hendrerit.
16+
17+
```{code-block} python
18+
---
19+
caption: markdown.py
20+
linenos: true
21+
emphasize-lines: 3-5
22+
---
23+
import mistune
24+
25+
def render_markdown(text: str) -> str:
26+
"""A simple function to render text in markdown format."""
27+
return mistune.html(text)
28+
29+
render_markdown("Hello **Shibuya**.")
30+
```

0 commit comments

Comments
 (0)