Files
LifeFaq/depricated/test_markdown_render.py

18 lines
453 B
Python
Raw Normal View History

2024-12-11 23:56:15 +01:00
from app.services.markdown_render import MarkdownRenderer
2024-12-11 19:10:25 +01:00
# 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)