rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
453 stars 14 forks source link

Detect Large Text as Headings #67

Open mad-moo opened 2 weeks ago

mad-moo commented 2 weeks ago

Rio automatically spawns <h1>, <h2>, ... elements when using style="heading...". However, this doesn't work when using custom headings.

Detect custom styling as headings (e.g. size >=2) as heading and spawn <h> elements instead.