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: