File size: 795 Bytes
7798609 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
'''
title: Html Hypertext
'''
import streamsync as ss
ss.md("## ss.html")
ss.space("")
ss.md('''
#### π
Example
''')
ss.md("### html")
ss.html(f"""
<p>This is a piece of rich text content, which contains <strong>bold</strong> and <em>italic</em> text.</p>
<style>
.testclass{{
color:red;
font-weight:bold;
}}
</style>
<div class="testclass">this is red</div>
""")
ss.space("mt-8")
ss.write('''
---
#### π Code
''')
ss.md('''
```python
import simplestart as ss
ss.html(f"""
<p>This is a piece of rich text content, which contains <strong>bold</strong> and <em>italic</em> text.</p>
<style>
.testclass{{
color:red;
font-weight:bold;
}}
</style>
<div class="testclass">this is red</div>
""")
```
''') |