3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #199770 from domenkozar/nixos-options-markdown

nixos options markdown: fix html escaping
This commit is contained in:
Domen Kožar 2022-11-06 18:08:59 +00:00 committed by GitHub
commit 8993cc730d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ import sys
options = json.load(sys.stdin)
for (name, value) in options.items():
print('##', name.replace('<', '\\<').replace('>', '\\>'))
print('##', name.replace('<', '&lt;').replace('>', '&gt;'))
print(value['description'])
print()
if 'type' in value: