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
Following the tutorial, I am able to render math in the following way:
#[component]
pub fn Hero() -> Element {
let contents = include_str!("output.html");
rsx! {
div { dangerous_inner_html: "{contents}" }
}
}
This yields the expected results on both desktop and web:
However, it's both more ergonomic and safer to work with the source directly. I tried dx translate --file output.html but it appears that the styles are not being properly parsed:
Using the generated RSX leads to a compilation error.
Steps To Reproduce
Steps to reproduce the behavior:
Run the tutorial app with the above modifications and using following output.html:
Expected behavior dx translate --file output.html correctly parses the file and the resulting RSX code renders identically to using dangerous_inner_html.
Screenshots
See above.
Environment:
Dioxus version: dioxus 0.6.0 (was built without git repository)
Rust version: rustc 1.83.0 (90b35a623 2024-11-26)
OS info: MacOS 14.6.1 (23G93)
App platform: web, desktop
Additional Information
My notional pipeline looks something like file_with_latex.html -> (MathJax) -> pure_html_and_css.html -> (dx translate) -> App.
The text was updated successfully, but these errors were encountered:
Problem
Following the tutorial, I am able to render math in the following way:
This yields the expected results on both desktop and web:

However, it's both more ergonomic and safer to work with the source directly. I tried
dx translate --file output.html
but it appears that the styles are not being properly parsed:Using the generated RSX leads to a compilation error.
Steps To Reproduce
Steps to reproduce the behavior:
output.html
:Expected behavior
dx translate --file output.html
correctly parses the file and the resulting RSX code renders identically to usingdangerous_inner_html
.Screenshots
See above.
Environment:
Additional Information
My notional pipeline looks something like
file_with_latex.html
-> (MathJax) ->pure_html_and_css.html
-> (dx translate) -> App.The text was updated successfully, but these errors were encountered: