- p*
- --table*--
- --td--
- --tr--
- style
*style-able tags
- height
- width
- margin-bottom
- margin-left
- margin-right
- margin-top
Styling syntax follows the following format:
<style-able element> {
<styling property>: [units in number of characters];
}
<element></element>
Invalid tag syntax will raise a SyntaxError.
python -i simple_html_renderer/simple_html_render.py
>>> simple_html_renderer("<p>Hello World!</p>")
'Hello World!'
File reading coming soon?
Styling tags apply globally.
Currently, tags do not support nesting.
While element tags can technically contain anything, table
tags will only display properly with properly nested tr
and td
tags.