Bug fix update by @RandomHashTags
Fixes
- non-global attribute values not being HTML escaped (commit)
- triple backslash quotation marks not being HTML escaped properly (commit)
- missing attribute value when rendering if the key was wrapped in the "`" character (affected attributes: as, for, default, defer)
- using interpolation in a multi-line context not being compiled correctly (commit, commit)
- html expansion with encodings other than
string
produce the wrong result (it didn't account for how the string delimiter should be represented) (#3) - certain syntax combinations missing their expected content when being expanded into interpolation, and causing SourceKit and swift-frontend to get stuck in infinite loops (#5, #6)
escapeHTML
macro not accounting for otherHTMLEncoding
s (commit)
Breaking changes
- changed the
htmlValue
computed property tofunc htmlValue(encoding:)
forHTMLInitializable
(commit)
Additions
- Literal expansion logic for the html macro is now publicly available through
HTMLKitUtilities.expandHTMLMacro
(commit) encoding
parameter to the#escapeHTML
macro. Default isstring
and, if contained in a#html
macro, the parent encoding (commit)CONTRIBUTING.md
.swift-format.json
Thanks
A special thanks to @andrebraga for reporting bugs that were fixed in this release!
Full Changelog: 0.10.0...0.11.0