mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Update formatting of markdown scripts
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user