Fix htmlgen html lang (#12668) [backport]
* Fix HTMLGen enable lang on html tag
This commit is contained in:
parent
83b7656c0e
commit
9c46526cfa
2 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@
|
||||||
- `htmlgen` adds [MathML](https://wikipedia.org/wiki/MathML) support
|
- `htmlgen` adds [MathML](https://wikipedia.org/wiki/MathML) support
|
||||||
(ISO 40314).
|
(ISO 40314).
|
||||||
- `macros.eqIdent` is now invariant to export markers and backtick quotes.
|
- `macros.eqIdent` is now invariant to export markers and backtick quotes.
|
||||||
|
- `htmlgen.html` allows `lang` on the `<html>` tag and common valid attributes.
|
||||||
|
|
||||||
|
|
||||||
## Language additions
|
## Language additions
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@ macro header*(e: varargs[untyped]): untyped =
|
||||||
|
|
||||||
macro html*(e: varargs[untyped]): untyped =
|
macro html*(e: varargs[untyped]): untyped =
|
||||||
## generates the HTML ``html`` element.
|
## generates the HTML ``html`` element.
|
||||||
result = xmlCheckedTag(e, "html", "xmlns", "")
|
result = xmlCheckedTag(e, "html", "xmlns" & commonAttr, "")
|
||||||
|
|
||||||
macro hr*(): untyped =
|
macro hr*(): untyped =
|
||||||
## generates the HTML ``hr`` element.
|
## generates the HTML ``hr`` element.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue