From eef13d8647da051bd1737ef8249c477f3719308b Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Thu, 25 Sep 2025 23:14:28 -0700 Subject: [PATCH] Tidy HTML example in readme GitHub's sanitization was eating the component tags. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 98df350..64bf4ad 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Add the script to your HTML: Then use the component in your HTML: +```html def my_function(param): """ A function that does something. @@ -24,6 +25,7 @@ def my_function(param): """ # YOUR CODE HERE +``` The component will preserve whitespace and indentation in the code, so you can write the Python code naturally in your HTML.