Skip to content

Commit

Permalink
Fix README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lampsitter committed May 11, 2024
1 parent 5e773e8 commit 8ece45b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ This will do the parsing of the markdown at compile time and output egui widgets

```rust
use egui_commonmark::{CommonMarkCache, commonmark};
# egui::__run_test_ui(|ui| {
let mut cache = CommonMarkCache::default();
let _response = commonmark!("example", ui, &mut cache, "# ATX Heading Level 1");
# });
```

Alternatively you can embed a file
Expand All @@ -53,10 +51,8 @@ Alternatively you can embed a file

```rust
use egui_commonmark::{CommonMarkCache, commonmark_str};
# egui::__run_test_ui(|ui| {
let mut cache = CommonMarkCache::default();
commonmark_str!("example_file", ui, &mut cache, "content.md");
# });
```


Expand Down
4 changes: 0 additions & 4 deletions egui_commonmark_macros/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ image = { version = "0.24", default-features = false, features = ["png"] }

```rust
use egui_commonmark::{CommonMarkCache, commonmark};
# egui::__run_test_ui(|ui| {
let mut cache = CommonMarkCache::default();
let _response = commonmark!("example", ui, &mut cache, "# ATX Heading Level 1");
# });
```

Alternatively you can embed a file
Expand All @@ -35,10 +33,8 @@ Alternatively you can embed a file

```rust
use egui_commonmark::{CommonMarkCache, commonmark_str};
# egui::__run_test_ui(|ui| {
let mut cache = CommonMarkCache::default();
commonmark_str!("example_file", ui, &mut cache, "content.md");
# });
```

## License
Expand Down

0 comments on commit 8ece45b

Please sign in to comment.