@@ -49,17 +49,17 @@ pub(crate) fn opts() -> Options {
49
49
50
50
/// When `to_string` is called, this struct will emit the HTML corresponding to
51
51
/// 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 ,
54
54
/// A list of link replacements.
55
- crate & ' a [ RenderedLink ] ,
55
+ pub & ' a [ RenderedLink ] ,
56
56
/// The current list of used header IDs.
57
- crate & ' a mut IdMap ,
57
+ pub & ' a mut IdMap ,
58
58
/// Whether to allow the use of explicit error codes in doctest lang strings.
59
- crate ErrorCodes ,
59
+ pub ErrorCodes ,
60
60
/// 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 > ,
63
63
) ;
64
64
/// A tuple struct like `Markdown` that renders the markdown with a table of contents.
65
65
crate struct MarkdownWithToc < ' a > (
@@ -81,7 +81,7 @@ crate struct MarkdownHtml<'a>(
81
81
crate struct MarkdownSummaryLine < ' a > ( pub & ' a str , pub & ' a [ RenderedLink ] ) ;
82
82
83
83
#[ derive( Copy , Clone , PartialEq , Debug ) ]
84
- crate enum ErrorCodes {
84
+ pub enum ErrorCodes {
85
85
Yes ,
86
86
No ,
87
87
}
@@ -160,7 +160,7 @@ fn slugify(c: char) -> Option<char> {
160
160
}
161
161
162
162
#[ derive( Clone , Debug ) ]
163
- crate struct Playground {
163
+ pub struct Playground {
164
164
crate crate_name : Option < String > ,
165
165
crate url : String ,
166
166
}
@@ -923,7 +923,7 @@ impl LangString {
923
923
}
924
924
925
925
impl Markdown < ' _ > {
926
- crate fn into_string ( self ) -> String {
926
+ pub fn into_string ( self ) -> String {
927
927
let Markdown ( md, links, mut ids, codes, edition, playground) = self ;
928
928
929
929
// This is actually common enough to special-case
@@ -1210,7 +1210,7 @@ crate fn rust_code_blocks(md: &str, extra_info: &ExtraInfo<'_, '_>) -> Vec<RustC
1210
1210
}
1211
1211
1212
1212
#[ derive( Clone , Default , Debug ) ]
1213
- crate struct IdMap {
1213
+ pub struct IdMap {
1214
1214
map : FxHashMap < String , usize > ,
1215
1215
}
1216
1216
@@ -1243,7 +1243,7 @@ fn init_id_map() -> FxHashMap<String, usize> {
1243
1243
}
1244
1244
1245
1245
impl IdMap {
1246
- crate fn new ( ) -> Self {
1246
+ pub fn new ( ) -> Self {
1247
1247
IdMap { map : init_id_map ( ) }
1248
1248
}
1249
1249
0 commit comments