You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing this to inline fixes the problem (tested with browser's developer tools). However, I don't know if there are any downsides to that. Is the inline-block intentional?
The text was updated successfully, but these errors were encountered:
Scenario:
Consider the first paragraph here https://doc.rust-lang.org/book/second-edition/ch06-02-match.html.
Triple click somewhere in the middle of the paragraph (e.g. the word "wildcards").
Expected:
The entire paragraph is selected ("Rust has [...] are handled.").
This is how e.g. GitHub behaves, try triple-clicking in the following for example:
Lorem ipsum dolor sit amet, consectetur
match
adipiscing. Ut enim ad minim veniam, quis nostrud exercitationmatch
ullamco laboris nisi.Actual:
Only the text between the preceding and subsequent inline code blocks are selected (
match
in this case).This happens because inline code blocks are specified to have
inline-block
display:https://github.com/rust-lang-nursery/mdBook/blob/8ba183075076b4ef871d442e74b5e53d7d78ed36/src/theme/css/chrome.css#L175-L181
Changing this to
inline
fixes the problem (tested with browser's developer tools). However, I don't know if there are any downsides to that. Is theinline-block
intentional?The text was updated successfully, but these errors were encountered: