mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 07:21:19 +00:00
Fix htmlgen html lang (#12668) [backport]
* Fix HTMLGen enable lang on html tag
This commit is contained in:
committed by
Andreas Rumpf
parent
83b7656c0e
commit
9c46526cfa
@@ -53,7 +53,7 @@
|
||||
- `htmlgen` adds [MathML](https://wikipedia.org/wiki/MathML) support
|
||||
(ISO 40314).
|
||||
- `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
|
||||
|
||||
@@ -321,7 +321,7 @@ macro header*(e: varargs[untyped]): untyped =
|
||||
|
||||
macro html*(e: varargs[untyped]): untyped =
|
||||
## generates the HTML ``html`` element.
|
||||
result = xmlCheckedTag(e, "html", "xmlns", "")
|
||||
result = xmlCheckedTag(e, "html", "xmlns" & commonAttr, "")
|
||||
|
||||
macro hr*(): untyped =
|
||||
## generates the HTML ``hr`` element.
|
||||
|
||||
Reference in New Issue
Block a user