generated from hjess/PythonTemplateProject
https enforcement
This commit is contained in:
18
test_markdown_render.py
Normal file
18
test_markdown_render.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from markdown_render import MarkdownRenderer
|
||||
|
||||
# Initialize MarkdownRenderer
|
||||
renderer = MarkdownRenderer()
|
||||
|
||||
# Test Markdown input
|
||||
markdown_content = """
|
||||
{img-left-overlay: src=my-cat.png}
|
||||
{box: title=Test Box, content=This is a test.}
|
||||
{note: content=This is a note.}
|
||||
{warning: content=Be careful!}
|
||||
"""
|
||||
|
||||
# Render to HTML
|
||||
print("Rendering Markdown...")
|
||||
html_output = renderer.render(markdown_content)
|
||||
print("Rendered HTML:")
|
||||
print(html_output)
|
||||
Reference in New Issue
Block a user