1 #![crate_type = "lib"] 2 #![crate_name = "summaries"] 3 4 //! This *summary* has a [link] and `code`. 5 //! 6 //! This is the second paragraph. 7 //! 8 //! [link]: https://example.com 9 10 // @has search-index.js 'This <em>summary</em> has a link and <code>code</code>.' 11 // @!has - 'second paragraph' 12 13 /// This `code` will be rendered in a code tag. 14 /// 15 /// This text should not be rendered. 16 pub struct Sidebar; 17 18 // @has search-index.js 'This <code>code</code> will be rendered in a code tag.' 19 // @has summaries/sidebar-items.js 'This `code` will be rendered in a code tag.' 20 // @!has - 'text should not be rendered' 21 22 /// ```text 23 /// this block should not be rendered 24 /// ``` 25 pub struct Sidebar2; 26 27 // @!has summaries/sidebar-items.js 'block should not be rendered' 28