-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Markdown support in
TextDocument
(#3343)
### What ```rs rec.log( "markdown", &TextDocument::new( "# Hello\n\ Markdown with `code`!\n\ \n\ A random image:\n\ \n\ ![A random image](https://picsum.photos/640/480)", ) .with_media_type(MediaType::markdown()), )?; ``` <img width="809" alt="image" src="https://github.com/rerun-io/rerun/assets/1148717/d4cbf9a3-e3c9-4aba-be35-8921dae001e7"> This will let us add nice documentation explaining our examples. ### Not yet supported * Syntax highlighting of code blocks * `egui_commomark` uses `syntect` which is too big of a dependency imho, see lampsitter/egui_commonmark#13 * Embedding references to images in the data store * We should support something like `![](entity://my/image/entity)` where `my/image/entity` is the entity path to an image you have logged. ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/3343) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/3343) - [Docs preview](https://rerun.io/preview/8b743c5708382aef1841a364442762a2abc80db3/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/8b743c5708382aef1841a364442762a2abc80db3/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
- Loading branch information
Showing
36 changed files
with
832 additions
and
77 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.