@@ -102,14 +102,14 @@ pub struct Markdown<'a> {
102102 /// E.g. if `heading_offset: HeadingOffset::H2`, then `# something` renders an `<h2>`.
103103 pub heading_offset : HeadingOffset ,
104104}
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+ }
113113/// A tuple struct like `Markdown` that renders the markdown escaping HTML tags
114114/// and includes no paragraph tags.
115115pub ( crate ) struct MarkdownItemInfo < ' a > ( pub ( crate ) & ' a str , pub ( crate ) & ' a mut IdMap ) ;
@@ -1048,7 +1048,7 @@ impl Markdown<'_> {
10481048
10491049impl MarkdownWithToc < ' _ > {
10501050 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 ;
10521052
10531053 let p = Parser :: new_ext ( md, main_body_opts ( ) ) . into_offset_iter ( ) ;
10541054
0 commit comments