Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
7fb4f770
Unverified
Commit
7fb4f770
authored
Dec 23, 2017
by
Dave Machado
Browse files
Update formatting of markdown scripts
parent
deef6e15
Changes
2
Hide whitespace changes
Inline
Side-by-side
build/md2json.py
View file @
7fb4f770
#!/usr/bin/env python3
import
sys
import
json
import
sys
def
markdown_to_json
(
filename
,
anchor
):
...
...
build/validate_format.py
View file @
7fb4f770
...
...
@@ -89,7 +89,7 @@ def check_format(filename):
# START Link
# url should be wrapped in '[Go!]()' Markdown syntax
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)"'
)
# END Link
# END Check Entries
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment