Skip to content

Commit

Permalink
use markdownEscapeLinkURL instead of stringEncodeURL
Browse files Browse the repository at this point in the history
  • Loading branch information
craigahobbs committed Aug 16, 2022
1 parent dcc7079 commit ace0ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/doc/app.mds
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function indexPage()
ixRequest = 0
requestLoop:
requestName = arrayGet(groupRequests, ixRequest)
markdownPrint('', '[' + markdownEscape(requestName) + "](#var.vName='" + stringEncodeURL(requestName) + "')")
markdownPrint('', '[' + markdownEscape(requestName) + "](#var.vName='" + markdownEscapeLinkURL(requestName) + "')")
ixRequest = ixRequest + 1
jumpif (ixRequest < arrayLength(groupRequests)) requestLoop
ixGroup = ixGroup + 1
Expand All @@ -40,7 +40,7 @@ endfunction

async function requestPage(typeName)
# Fetch the request API
docRequest = fetch('doc_request?name=' + stringEncodeURL(typeName))
docRequest = fetch('doc_request?name=' + markdownEscapeLinkURL(typeName))
doc = objectGet(docRequest, 'doc')
urls = objectGet(docRequest, 'urls')
types = objectGet(docRequest, 'types')
Expand Down

0 comments on commit ace0ddd

Please sign in to comment.