File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Write HTML using Swift Macros.
1212 - create ` div ` element: ` #div() `
1313 - create ` div ` element with "dark" and "mode" classes: ` #div(attributes: [.class(["dark", "mode"])]) `
1414### Example
15- This html is compiled by following code
15+ This html is compiled by the following code
1616``` html
1717<!DOCTYPE html><html ><body ><div class =" dark mode" title =" Hover over message" draggable =" false" inputmode =" email" hidden =" hidden" >Unconstrained text<div ></div ><a ><div ><abbr ></abbr ></div ></a ><div ></div ><button disabled ></button ><video autoplay preload =" auto" src =" ezclap" width =" 5" ></video ></div ></body ></html >
1818```
Original file line number Diff line number Diff line change @@ -10,9 +10,6 @@ import HTMLKitMacros
1010// TODO: fix some `height` & `width` value types (they're CSS pixels, not only integers) | change some to `String` or allow overloads
1111
1212// MARK: Elements
13- @freestanding ( expression)
14- public macro HTMLElement( elementType: HTMLElementType , innerHTML: [ String ] = [ ] ) -> String = #externalMacro( module: " HTMLKitMacros " , type: " HTMLElement " )
15-
1613@freestanding ( expression)
1714public macro html( xmlns: String ? = nil , innerHTML: [ String ] ) -> String = #externalMacro( module: " HTMLKitMacros " , type: " HTMLElement " )
1815
@@ -1184,4 +1181,4 @@ public extension HTMLElementAttribute {
11841181 enum WritingSuggestions : String {
11851182 case `true`, `false`
11861183 }
1187- }
1184+ }
You can’t perform that action at this time.
0 commit comments