Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docsite's md Files Do Not Support Inline Html #459

Closed
mcmah309 opened this issue Mar 6, 2025 · 3 comments
Closed

Docsite's md Files Do Not Support Inline Html #459

mcmah309 opened this issue Mar 6, 2025 · 3 comments

Comments

@mcmah309
Copy link

mcmah309 commented Mar 6, 2025

The docsite does not support inline html like mdbook does. I believe this is because, as far as I can tell, the docsite does not use mdbook and instead implements it's own custom parser that is compatible with mdbooks format? - https://github.com/DioxusLabs/docsite/tree/main/packages/include_mdbook (This also means things like mdbook preprocessors do not work).

The docsite should support inline html like mdbook.

@mcmah309 mcmah309 changed the title Docsite's mdbook Processor Does Not Support Inline Html Docsite's md Files Do Not Support Inline Html Mar 6, 2025
@ealmloff
Copy link
Member

ealmloff commented Mar 6, 2025

You can use ```inject-dioxus``` to inject some rsx into the markdown:

\```inject-dioxus
video {
"type": "video/mp4",
"name": "dx new demo",
autoplay: "true",
controls: "false",
r#loop: "true",
width: "800px",
muted: "true",
source {
src: manganis::mg!(file("./public/static/dioxus-new.mov")),
}
}
\```

@mcmah309
Copy link
Author

mcmah309 commented Mar 7, 2025

Thanks! That seemed to resolve my need. Any plans to expand on the docs for features like this?

@mcmah309 mcmah309 closed this as completed Mar 7, 2025
@ealmloff
Copy link
Member

Yes, more information about our mdbook format should probably be added to the contributing guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants