We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf9ec9c commit d953943Copy full SHA for d953943
learning-path/beginner.md
@@ -13,3 +13,18 @@ eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum
13
primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh.
14
Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non
15
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