Easy Markdown rendering in YATL templates!

46 views
Skip to first unread message

Jacinto Parga

unread,
Apr 19, 2026, 11:09:34 AMApr 19
to py4web
Hi everyone,

We all know how convenient Markdown is for storing and managing content now, but rendering it shouldn't be a chore. To make things easier, I've put together a new MARKDOWN helper for YATL.

The goal was to create something "plug-and-play." It automatically detects whether you're using markdown or markdown-it-py and handles the HTML conversion safely so you don't have to worry about escaping issues.

What’s included:

  • Full support for headers, code blocks, and lists.

  • Clean handling of bytes and edge-case formatting.

  • Zero impact on existing code (fully backward compatible).

You can see the implementation here: https://github.com/jparga/yatl/tree/feature/markdown-helper

It's been a code assited by AI (Cloud Sonnet 4.5)

Feedback is appreciated.

Alan Etkin

unread,
Apr 26, 2026, 11:05:15 AM (8 days ago) Apr 26
to py4web
Great contribution!

Regards

Alan

Reply all
Reply to author
Forward
0 new messages