mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
Checking in progress
This commit is contained in:
parent
0ef4cc2fd4
commit
745bd99e41
2 changed files with 159 additions and 68 deletions
|
@ -105,7 +105,7 @@ def test_markdown_render():
|
|||
|
||||
def test_simple_markdown():
|
||||
markdown = Markdown(
|
||||
"""***hello*** `world`
|
||||
"""*hello* **world**
|
||||
"""
|
||||
)
|
||||
rendered = render(markdown)
|
||||
|
@ -115,13 +115,23 @@ def test_simple_markdown():
|
|||
def test_simple_markdown_2():
|
||||
markdown = Markdown(
|
||||
"""
|
||||
# Hello, world!
|
||||
|
||||
|
||||
# Hello, *world*!
|
||||
|
||||
## Heading 2
|
||||
|
||||
***hello***
|
||||
**hello**
|
||||
"""
|
||||
)
|
||||
rendered = render(markdown)
|
||||
assert rendered == ""
|
||||
|
||||
|
||||
def test_markdown_table():
|
||||
markdown = Markdown(
|
||||
"""
|
||||
| foo | bar |
|
||||
| --- | --- |
|
||||
| baz | bim |
|
||||
"""
|
||||
)
|
||||
rendered = render(markdown)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue