@@ -102,14 +102,14 @@ pub struct Markdown<'a> {
102
102
/// E.g. if `heading_offset: HeadingOffset::H2`, then `# something` renders an `<h2>`.
103
103
pub heading_offset : HeadingOffset ,
104
104
}
105
- /// A tuple struct like `Markdown` that renders the markdown with a table of contents.
106
- pub ( crate ) struct MarkdownWithToc < ' a > (
107
- pub ( crate ) & ' a str ,
108
- pub ( crate ) & ' a mut IdMap ,
109
- pub ( crate ) ErrorCodes ,
110
- pub ( crate ) Edition ,
111
- pub ( crate ) & ' a Option < Playground > ,
112
- ) ;
105
+ /// A struct like `Markdown` that renders the markdown with a table of contents.
106
+ pub ( crate ) struct MarkdownWithToc < ' a > {
107
+ pub ( crate ) content : & ' a str ,
108
+ pub ( crate ) ids : & ' a mut IdMap ,
109
+ pub ( crate ) error_codes : ErrorCodes ,
110
+ pub ( crate ) edition : Edition ,
111
+ pub ( crate ) playground : & ' a Option < Playground > ,
112
+ }
113
113
/// A tuple struct like `Markdown` that renders the markdown escaping HTML tags
114
114
/// and includes no paragraph tags.
115
115
pub ( crate ) struct MarkdownItemInfo < ' a > ( pub ( crate ) & ' a str , pub ( crate ) & ' a mut IdMap ) ;
@@ -1048,7 +1048,7 @@ impl Markdown<'_> {
1048
1048
1049
1049
impl MarkdownWithToc < ' _ > {
1050
1050
pub ( crate ) fn into_string ( self ) -> String {
1051
- let MarkdownWithToc ( md, ids, codes, edition, playground) = self ;
1051
+ let MarkdownWithToc { content : md, ids, error_codes : codes, edition, playground } = self ;
1052
1052
1053
1053
let p = Parser :: new_ext ( md, main_body_opts ( ) ) . into_offset_iter ( ) ;
1054
1054
0 commit comments