Skip to content

Commit

Permalink
Remove more id usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lampsitter committed Sep 7, 2024
1 parent ff02bc5 commit b4c7b18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ r"# Hello world
";

let mut cache = CommonMarkCache::default();
CommonMarkViewer::new("viewer").show(ui, &mut cache, markdown);
CommonMarkViewer::new().show(ui, &mut cache, markdown);
```


Expand All @@ -42,7 +42,7 @@ This will do the parsing of the markdown at compile time and output egui widgets
```rust
use egui_commonmark::{CommonMarkCache, commonmark};
let mut cache = CommonMarkCache::default();
let _response = commonmark!("example", ui, &mut cache, "# ATX Heading Level 1");
let _response = commonmark!(ui, &mut cache, "# ATX Heading Level 1");
```

Alternatively you can embed a file
Expand All @@ -52,7 +52,7 @@ Alternatively you can embed a file
```rust
use egui_commonmark::{CommonMarkCache, commonmark_str};
let mut cache = CommonMarkCache::default();
commonmark_str!("example_file", ui, &mut cache, "content.md");
commonmark_str!(ui, &mut cache, "content.md");
```


Expand Down
4 changes: 2 additions & 2 deletions egui_commonmark_macros/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image = { version = "0.25", default-features = false, features = ["png"] }
```rust
use egui_commonmark::{CommonMarkCache, commonmark};
let mut cache = CommonMarkCache::default();
let _response = commonmark!("example", ui, &mut cache, "# ATX Heading Level 1");
let _response = commonmark!(ui, &mut cache, "# ATX Heading Level 1");
```

Alternatively you can embed a file
Expand All @@ -34,7 +34,7 @@ Alternatively you can embed a file
```rust
use egui_commonmark::{CommonMarkCache, commonmark_str};
let mut cache = CommonMarkCache::default();
commonmark_str!("example_file", ui, &mut cache, "content.md");
commonmark_str!(ui, &mut cache, "content.md");
```

## License
Expand Down

0 comments on commit b4c7b18

Please sign in to comment.