Skip to content

Commit

Permalink
fix: html lang element
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfgross committed May 28, 2024
1 parent 3ef9cb5 commit 15369b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion writer/doc_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def write(output: str, doc: dict, template: str, format_html: bool, advanced_htm
"""

html_advanced_template = r"""<!DOCTYPE html>
<html lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
2 changes: 1 addition & 1 deletion writer/doc_writer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def test_writer_advanced_html():

result = doc_writer.write("test/output.md", doc, "", True, True, "")
assert result == r"""<!DOCTYPE html>
<html lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down

0 comments on commit 15369b7

Please sign in to comment.