Skip to content

Commit

Permalink
Merge pull request mermaid-js#5772 from adjerbetian/patch-1
Browse files Browse the repository at this point in the history
Fix tutorials.md with url safe encoding
  • Loading branch information
sidharthv96 authored Aug 26, 2024
2 parents 5aa8490 + 49a77dd commit 286a347
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .cspell/code-terms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ tsdoc
typeof
typestr
unshift
urlsafe
verifymethod
VERIFYMTHD
WARN_DOCSDIR_DOESNT_MATCH
Expand Down
2 changes: 1 addition & 1 deletion docs/ecosystem/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import matplotlib.pyplot as plt

def mm(graph):
graphbytes = graph.encode("utf8")
base64_bytes = base64.b64encode(graphbytes)
base64_bytes = base64.urlsafe_b64encode(graphbytes)
base64_string = base64_bytes.decode("ascii")
display(Image(url="https://mermaid.ink/img/" + base64_string))

Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/docs/ecosystem/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import matplotlib.pyplot as plt

def mm(graph):
graphbytes = graph.encode("utf8")
base64_bytes = base64.b64encode(graphbytes)
base64_bytes = base64.urlsafe_b64encode(graphbytes)
base64_string = base64_bytes.decode("ascii")
display(Image(url="https://mermaid.ink/img/" + base64_string))

Expand Down

0 comments on commit 286a347

Please sign in to comment.