File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def render_markdown(markdown_text: str) -> Markup:
103103 link_rel = "noopener nofollow" , # default includes noreferrer but not nofollow
104104 )
105105 inner_html = render_template ("sandboxed-iframe.html" , body = Markup (content_html ))
106- iFrame_html = f'<iframe sandbox="allow-scripts" class="embedded-content" srcdoc="{ html .escape (inner_html , True )} "></iframe>'
106+ iFrame_html = f'<iframe sandbox="allow-scripts allow-top-navigation-by-user-activation " class="embedded-content" srcdoc="{ html .escape (inner_html , True )} "></iframe>'
107107 return Markup (iFrame_html )
108108
109109
Original file line number Diff line number Diff line change 44< html lang ="en " style ="background-color: transparent; margin: 0; padding: 0 ">
55 < head >
66 < meta charset ="UTF-8 ">
7+ < base target ="_top ">
78 {% block css -%}
89 < link rel ="stylesheet " href ="{{ static_url_for('static', filename= "css /main.css") }}">
910 {% endblock -%}
You can’t perform that action at this time.
0 commit comments