mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 02:23:07 +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)
|
||||
for (name, value) in options.items():
|
||||
print('##', name.replace('<', '\\<').replace('>', '\\>'))
|
||||
print('##', name.replace('<', '<').replace('>', '>'))
|
||||
print(value['description'])
|
||||
print()
|
||||
if 'type' in value:
|
||||
|
Loading…
Reference in New Issue
Block a user