You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a crate that does HTML rendering, and therefore uses HTML tags within backticks at several points in its crate-level doc comments.
i.e., it opens
//! # Leptos Meta//!//! Leptos Meta allows you to modify content in a document’s `<head>` from within components//! using the [`Leptos`](https://github.com/leptos-rs/leptos) web framework.
This is correctly rendered as Markdown with the HTML in backticks escaped at docs.rs/leptos_meta
<p>Leptos Meta allows you to modify content in a document’s <code><head></code> from within components
using the <ahref="https://github.com/leptos-rs/leptos"><code>Leptos</code></a> web framework.</p>
But it is injected directly into the page as plain text, not rendered to Markdown and therefore containing unescaped HTML at docs.rs/crate/leptos_meta:
<divclass="pure-u-1 pure-u-sm-17-24 pure-u-md-19-24 package-details" id="main">
# Leptos Meta
Leptos Meta allows you to modify content in a document’s `<head>` from within components
using the [`Leptos`](https://github.com/leptos-rs/leptos) web framework.
This causes rendering issues, as can be seen by navigating to the two pages.
Because the Content-Security Policy would prevent any <script> tag from executing, I don't think there's any security issue here, just the rendering one.
It's also possible I'm doing something wrong and this is documented somewhere, in which case a pointer to those docs would be helpful so I can fix it.
The text was updated successfully, but these errors were encountered:
I have a crate that does HTML rendering, and therefore uses HTML tags within backticks at several points in its crate-level doc comments.
i.e., it opens
This is correctly rendered as Markdown with the HTML in backticks escaped at docs.rs/leptos_meta
But it is injected directly into the page as plain text, not rendered to Markdown and therefore containing unescaped HTML at docs.rs/crate/leptos_meta:
This causes rendering issues, as can be seen by navigating to the two pages.
Because the Content-Security Policy would prevent any
<script>
tag from executing, I don't think there's any security issue here, just the rendering one.It's also possible I'm doing something wrong and this is documented somewhere, in which case a pointer to those docs would be helpful so I can fix it.
The text was updated successfully, but these errors were encountered: