File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,12 @@ pub(crate) fn opts() -> Options {
52
52
| Options :: ENABLE_FOOTNOTES
53
53
| Options :: ENABLE_STRIKETHROUGH
54
54
| Options :: ENABLE_TASKLISTS
55
+ | Options :: ENABLE_SMART_PUNCTUATION
55
56
}
56
57
57
58
/// A subset of [`opts()`] used for rendering summaries.
58
59
pub ( crate ) fn summary_opts ( ) -> Options {
59
- Options :: ENABLE_STRIKETHROUGH
60
+ Options :: ENABLE_STRIKETHROUGH | Options :: ENABLE_SMART_PUNCTUATION
60
61
}
61
62
62
63
/// When `to_string` is called, this struct will emit the HTML corresponding to
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ extern crate inner;
4
4
5
5
6
6
// @has add_docs/struct.MyStruct.html
7
- // @has add_docs/struct.MyStruct.html "Doc comment from ' pub use' , Doc comment from definition"
7
+ // @has add_docs/struct.MyStruct.html "Doc comment from ‘ pub use’ , Doc comment from definition"
8
8
/// Doc comment from 'pub use',
9
9
pub use inner:: MyStruct ;
Original file line number Diff line number Diff line change
1
+ #![ crate_name = "foo" ]
2
+
3
+ //! This is the "start" of the 'document'! How'd you know that "it's" the start?
4
+ //!
5
+ //! # Header with "smart punct'"
6
+ //!
7
+ //! [link with "smart punct'" -- yessiree!][]
8
+ //!
9
+ //! [link with "smart punct'" -- yessiree!]: https://www.rust-lang.org
10
+
11
+ // @has "foo/index.html" "//p" "This is the “start” of the ‘document’! How’d you know that “it’s” the start?"
12
+ // @has "foo/index.html" "//h1" "Header with “smart punct’”"
13
+ // @has "foo/index.html" '//a[@href="https://www.rust-lang.org"]' "link with “smart punct’” – yessiree!"
You can’t perform that action at this time.
0 commit comments