mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-12 16:46:47 +02:00
Update formatting of markdown scripts
This commit is contained in:
parent
deef6e15ab
commit
7fb4f77080
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import sys
|
|
||||||
import json
|
import json
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def markdown_to_json(filename, anchor):
|
def markdown_to_json(filename, anchor):
|
||||||
|
|
|
@ -89,7 +89,7 @@ def check_format(filename):
|
||||||
# START Link
|
# START Link
|
||||||
# url should be wrapped in '[Go!]()' Markdown syntax
|
# url should be wrapped in '[Go!]()' Markdown syntax
|
||||||
link = segments[index_link]
|
link = segments[index_link]
|
||||||
if not link.startswith('[Go!](') or not link.endswith(')'):
|
if not link.startswith('[Go!](http') or not link.endswith(')'):
|
||||||
add_error(line_num, 'link format should be "[Go!](LINK)"')
|
add_error(line_num, 'link format should be "[Go!](LINK)"')
|
||||||
# END Link
|
# END Link
|
||||||
# END Check Entries
|
# END Check Entries
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue