Releases: COMP1010UNSW/pyhtml-enhanced
Releases · COMP1010UNSW/pyhtml-enhanced
v2.1.0 - Improvements and features
✨ NEW ✨
- Default attributes have been added for many elements including
pre
,div
,textarea
,span
, and more elements - Add support for whitespace-sensitive tags
✏️ CHANGED ✏️
- Document rendering control methods
- Refactor rendering to add indentation during rendering, rather than at end
🔧 FIXED 🔧
- Fix rendering of
<pre>
and<textarea>
tags - Include a
<!DOCTYPE html>
to prevent web browsers from rendering in quirks mode
v2.0.3 - Fix `<style>` tags and link rendering
🔧 FIXED 🔧
<style>
tags no-longer escape their contents, meaning including inline CSS is far more reliable.- Fixed link rendering for HTML tag xrefs, so documentation should no-longer look broken in VS Code
v2.0.2 - Type safety fixes
🔧 FIXED 🔧
- Passing a
list[SomeElement]
to apyhtml
element resulted in errors from Pylance.
v2.0.1 - Add escape hatch
✨ NEW ✨
DangerousRawHtml
tag class to use as an escape hatch from PyHTML's string escapes
🔧 FIXED 🔧
- Contents of
<script>
tags were escaped, causing syntax errors in inline JS Code
v2.0 - Typing improvements and usability enhancements
✨ NEW ✨
- PyHTML now accepts generators as children to elements
- Type constraints have been added to arguments for tags, preventing common mistakes (breaking change)
- The
input
tag has been modified to make editor suggestions more intelligent
✏️ CHANGES ✏️
- The
formmethod
attribute is specified for allinput(type='submit')
elements whereformaction
is also specified (breaking change)
v1.1.0 - Support for Python 3.9
✨ NEW ✨
- Python 3.9 is now supported, so UNSW's CSE systems should no-longer freak out when installing the library
- PyHTML now gives a hint in the error message when users forget to stringify it before returning it to Flask
✏️ CHANGES ✏️
- Some dead code has been removed
- The module documentation is now significantly more helpful
- The library now uses a more markdown-friendly copy of the CC-BY-SA-2.5 license
⚙️ UNDER THE HOOD ⚙️
- The library now uses doctests to ensure that the examples in the README are correct
- It also has some end-to-end tests for Flask, since that is the primary use case in COMP1010
v1.0.4 - Improved documentation
✏️ CHANGED ✏️
- Suggestions are now included for more
form
,input
, andbutton
attributes - Attribute suggestions have been added for
td
, andth
elements
v1.0.3 - More refinements
🔧 FIXED 🔧
- Fix the same issue as before, it didn't work for self-closing tags
- This is why I need to remember to check coverage before publishing releases
v1.0.2 - Refinements
✏️ CHANGED ✏️
- Default values for attributes are documented
🔧 FIXED 🔧
- Overrides of attributes with default values in secondary calls didn't work
v1.0.1 - Bug fix
🔧 FIXED 🔧
- Fixed an issue where attributes could be overwritten by default properties