How to add markdown section in a html web page?
Thank you @NCP for your quick response.
I wanted to add in html page, like, if I have app foo, then for file intro.html, i.e for file (with path):
app/foo/foo/www/intro.html
I wish to have a markdown section.
I can have hero section, as:
{{ web_block(
'Hero',
values={
"title": title,
"subtitle": intro
},
add_container=0,
add_top_padding=0,
add_bottom_padding=0,
)}}
Similar, there might a way out for the markdown, as well.
Got the solution:
{% set introMD = """
# H1
Some content under Header1
# H2
Some other content under Header 2
### Table
| SNo | Name | Age |
|-----|--------|-----|
| 1 | Rai | 25 |
| 2 | Hari | 30 |
| 3 | Arhant | 16 |
| 4 | Modi | 52 |
by H S Rai""" %}
{{ web_block(
'Markdown',
values={
"content": introMD,
},
)}}
2 Likes