Skip to content

Commit a2e1c6f

Browse files
Update ext/notion.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 0799a50 commit a2e1c6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/notion.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def run(self):
2828
raise self.error("URL does not appear to be a valid Notion URL")
2929

3030
para = nodes.raw(
31-
"", TEMPLATE.format(url=url), format="html"
31+
para = nodes.raw(
32+
- "", TEMPLATE.format(url=url), format="html"
33+
+ "", TEMPLATE.format(url=urllib.parse.quote(url, safe=":/?&=+")), format="html"
34+
)
3235
)
3336
return [para]
3437

0 commit comments

Comments
 (0)