@@ -49,17 +49,17 @@ pub(crate) fn opts() -> Options {
4949
5050/// When `to_string` is called, this struct will emit the HTML corresponding to
5151/// the rendered version of the contained markdown string.
52- crate struct Markdown < ' a > (
53- crate & ' a str ,
52+ pub struct Markdown < ' a > (
53+ pub & ' a str ,
5454 /// A list of link replacements.
55- crate & ' a [ RenderedLink ] ,
55+ pub & ' a [ RenderedLink ] ,
5656 /// The current list of used header IDs.
57- crate & ' a mut IdMap ,
57+ pub & ' a mut IdMap ,
5858 /// Whether to allow the use of explicit error codes in doctest lang strings.
59- crate ErrorCodes ,
59+ pub ErrorCodes ,
6060 /// Default edition to use when parsing doctests (to add a `fn main`).
61- crate Edition ,
62- crate & ' a Option < Playground > ,
61+ pub Edition ,
62+ pub & ' a Option < Playground > ,
6363) ;
6464/// A tuple struct like `Markdown` that renders the markdown with a table of contents.
6565crate struct MarkdownWithToc < ' a > (
@@ -81,7 +81,7 @@ crate struct MarkdownHtml<'a>(
8181crate struct MarkdownSummaryLine < ' a > ( pub & ' a str , pub & ' a [ RenderedLink ] ) ;
8282
8383#[ derive( Copy , Clone , PartialEq , Debug ) ]
84- crate enum ErrorCodes {
84+ pub enum ErrorCodes {
8585 Yes ,
8686 No ,
8787}
@@ -160,7 +160,7 @@ fn slugify(c: char) -> Option<char> {
160160}
161161
162162#[ derive( Clone , Debug ) ]
163- crate struct Playground {
163+ pub struct Playground {
164164 crate crate_name : Option < String > ,
165165 crate url : String ,
166166}
@@ -923,7 +923,7 @@ impl LangString {
923923}
924924
925925impl Markdown < ' _ > {
926- crate fn into_string ( self ) -> String {
926+ pub fn into_string ( self ) -> String {
927927 let Markdown ( md, links, mut ids, codes, edition, playground) = self ;
928928
929929 // This is actually common enough to special-case
@@ -1210,7 +1210,7 @@ crate fn rust_code_blocks(md: &str, extra_info: &ExtraInfo<'_, '_>) -> Vec<RustC
12101210}
12111211
12121212#[ derive( Clone , Default , Debug ) ]
1213- crate struct IdMap {
1213+ pub struct IdMap {
12141214 map : FxHashMap < String , usize > ,
12151215}
12161216
@@ -1243,7 +1243,7 @@ fn init_id_map() -> FxHashMap<String, usize> {
12431243}
12441244
12451245impl IdMap {
1246- crate fn new ( ) -> Self {
1246+ pub fn new ( ) -> Self {
12471247 IdMap { map : init_id_map ( ) }
12481248 }
12491249
0 commit comments