Skip to content

Commit 6ae4c95

Browse files
author
Ashe Connor
authored
Merge pull request #66 from Keats/patch-1
Expose Arena
2 parents 3374911 + 1ef7e90 commit 6ae4c95

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ formatter:
6868

6969
``` rust
7070
extern crate comrak;
71-
extern crate typed_arena;
72-
use typed_arena::Arena;
73-
use comrak::{parse_document, format_html, ComrakOptions};
71+
use comrak::{parse_document, format_html, Arena, ComrakOptions};
7472
use comrak::nodes::{AstNode, NodeValue};
7573

7674
// The returned nodes are created in the supplied Arena, and are bound by its lifetime.

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
//!
1818
//! ```
1919
//! extern crate comrak;
20-
//! extern crate typed_arena;
21-
//! use typed_arena::Arena;
22-
//! use comrak::{parse_document, format_html, ComrakOptions};
20+
//! use comrak::{Arena, parse_document, format_html, ComrakOptions};
2321
//! use comrak::nodes::{AstNode, NodeValue};
2422
//!
2523
//! # fn main() {
@@ -98,7 +96,7 @@ mod tests;
9896
pub use cm::format_document as format_commonmark;
9997
pub use html::format_document as format_html;
10098
pub use parser::{parse_document, ComrakOptions};
101-
use typed_arena::Arena;
99+
pub use typed_arena::Arena;
102100

103101
/// Render Markdown to HTML.
104102
///

0 commit comments

Comments
 (0)