mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 21:42:35 +03:00
nixos options markdown: fix html escaping
\<foo\> will often be displayed like \<foo>, for example by mkdocs. I've tested a number of markdown renderers and they render html escape sequences fine.
This commit is contained in:
parent
8a88bac92b
commit
e190302018
@ -3,7 +3,7 @@ import sys
|
|||||||
|
|
||||||
options = json.load(sys.stdin)
|
options = json.load(sys.stdin)
|
||||||
for (name, value) in options.items():
|
for (name, value) in options.items():
|
||||||
print('##', name.replace('<', '\\<').replace('>', '\\>'))
|
print('##', name.replace('<', '<').replace('>', '>'))
|
||||||
print(value['description'])
|
print(value['description'])
|
||||||
print()
|
print()
|
||||||
if 'type' in value:
|
if 'type' in value:
|
||||||
|
Loading…
Reference in New Issue
Block a user