Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for hoedown -> pulldown regressions #40912
Comments
steveklabnik
assigned
frewsxcv and
GuillaumeGomez
Mar 29, 2017
frewsxcv
referenced this issue
Mar 29, 2017
Closed
Migrate from hoedown to pulldown-cmark for markdown parsing #38400
This comment has been minimized.
This comment has been minimized.
|
In core/intrinsics/fn.overflowing_sub.html.txt (and elsewhere?), hoedown was rendering This isn't recognized in the CommonMark spec, probably need to change the source to |
This comment has been minimized.
This comment has been minimized.
|
@ScottAbbey agree 100%; we'll have to send in a PR to fix. I wonder what the easiest way of finding all of them is..... |
This comment has been minimized.
This comment has been minimized.
|
It looks like markdown.rs is squishing things together when a list item spans multiple lines. In |
This comment has been minimized.
This comment has been minimized.
|
For the |
This comment has been minimized.
This comment has been minimized.
|
In src/libstd/collections/hash/map.rs under "Relevant papers/articles:", it appears the ordered list has been rendered as an unordered list instead. |
This comment has been minimized.
This comment has been minimized.
|
I'm getting an unexpected panic from
The markdown being referenced in the error looks like this: /// Rocket implements `FromFormValue` for many standard library types. Their
/// behavior is documented here.
///
/// * **f32, f64, isize, i8, i16, i32, i64, usize, u8, u16, u32, u64**
///
/// **IpAddr, Ipv4Addr, Ipv6Addr, SocketAddrV4, SocketAddrV6, SocketAddr**
///
/// A value is validated successfully if the `from_str` method for the given
/// type returns successfully. Otherwise, the raw form value is returned as
/// the `Err` value.Edit: I'll open a separate issue for this. |
SergioBenitez
referenced this issue
Mar 30, 2017
Closed
Panic caused by Markdown in latest nightly #40918
GuillaumeGomez
referenced this issue
Mar 30, 2017
Merged
Add support for image, rules and footnotes #40919
This comment has been minimized.
This comment has been minimized.
|
Here's one I found. (The diff is the fix needed, the extra line, to have the link render as a link). diff --git a/src/impl_views.rs b/src/impl_views.rs
index c26a4ef1..ac2f787c 100644
--- a/src/impl_views.rs
+++ b/src/impl_views.rs
@@ -19,6 +19,7 @@ use StrideShape;
/// Methods for read-only array views `ArrayView<'a, A, D>`
///
/// Note that array views implement traits like [`From`][f] and `IntoIterator` too.
+///
/// [f]: #method.from
impl<'a, A, D> ArrayBase<ViewRepr<&'a A>, D>
where D: Dimension, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Another bit of expected breakage is that autolinks now require If anyone is interested, I've started implementing what I suggested here: #40338 (comment), using |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Linebreak issue in bullet points: Input: //! - Still iterating on and evolving the crate this is a longer sentence that
//! is going to wrapOutput includes the two words pulled together across the linebreak: “thatis” “• Still iterating on and evolving the crate this is a longer sentence thatis going to wrap” |
This comment has been minimized.
This comment has been minimized.
I thought I made a bullet for this, but did not. However, I think this is related to the hard/soft break stuff. Making a bullet now though. |
This comment has been minimized.
This comment has been minimized.
|
It is. I'll handle when the current fix PR is merged. |
Marwes
added a commit
to Marwes/gluon
that referenced
this issue
Apr 1, 2017
This comment has been minimized.
This comment has been minimized.
|
#28712 seems to have been fixed causing this code block to be treated as a doc test https://travis-ci.org/gluon-lang/gluon/jobs/217399595#L668. Fixed in gluon-lang/gluon@b772329 |
alexcrichton
referenced this issue
Apr 1, 2017
Closed
Rust 1.18 regression rustc-serialize doc tests have regressed #40994
bors
added a commit
that referenced
this issue
Apr 2, 2017
This comment has been minimized.
This comment has been minimized.
|
@bluss: HardBreak issue has been fixed. |
This comment has been minimized.
This comment has been minimized.
|
Great! |
This comment has been minimized.
This comment has been minimized.
|
I just reviewed this again. oustanding things:
raph is busy, and this is a tiny thing. We should still see if we can get it landed. I think it can be worked around with an extra newline? This is still an under-spec'd thing.
@ollie27 you had said this here, but I can't see what you're referring to. Any pointers?
@ollie27 same here, is this still a thing or not? |
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 5, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 5, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 5, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 5, 2017
This comment has been minimized.
This comment has been minimized.
I didn't fix this at all. I actually don't even know where this is generated. |
This comment has been minimized.
This comment has been minimized.
|
rustc 1.18.0-nightly (91ae22a 2017-04-05) still shows a hard break issue. Not in regular paragraphs anymore, but in bullets. Repro: //! * Test line
//! breakExpected Output: Actual output: |
This comment has been minimized.
This comment has been minimized.
|
@bluss specifically what happens and what do you expect? |
This comment has been minimized.
This comment has been minimized.
|
Updated the comment with that. It pulls together the word across the line break. Still #40912 (comment) in fact (it's also a bullet) |
This comment has been minimized.
This comment has been minimized.
|
Ah nice! However, this isn't a "hard" break issue but a soft one. |
This comment has been minimized.
This comment has been minimized.
This was fixed for HTML by #40919 but is still broken for
I've gone through a diff of the std docs and found two issues caused by differences between hoedown and pulldown-cmark not listed in the above checklist:
|
ollie27
referenced this issue
Apr 6, 2017
Merged
rustdoc: Use pulldown-cmark for Markdown HTML rendering #41112
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 6, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 6, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 6, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 6, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 6, 2017
This comment has been minimized.
This comment has been minimized.
|
@ollie27 thanks so much! |
This comment has been minimized.
This comment has been minimized.
|
It looks like this is complete, modulo some small possible changes upstream with regards to footnotes. Great work everyone! Thank you so much |
steveklabnik
closed this
Apr 7, 2017
colin-kiegel
referenced this issue
Apr 8, 2017
Closed
hoedown -> pulldown regression: missing whitespace in multi-line bullet points #41162
This comment has been minimized.
This comment has been minimized.
|
Thanks |
steveklabnik commentedMar 29, 2017
•
edited
In #40338, we landed pulldown-cmark.🎊
But, given that it's a different renderer, there are bound to be differences. This comment pointed out some obvious problems. These bugs are going to be much easier to clean up than the initial PR was to land, though👍
To help with this work, I generated docs for both the commit before and the commit of, ran all the HTML files through tidy-html5, and put it up here: steveklabnik/docdiff@ddda1fe the
'->"changes are expected, but that tool doesn't have the ability to re-write those, so I left them in for now, which, frankly, makes the diff kinda large. working on it.Here's the stuff we've found so far:
<br />forHardBreaks<a>tag (imperio update: I'll need an example to be able to fix this one)MarkdownHtmlnow doing the same asMarkdownwhen it should be escaping raw HTML.^now needs to be an html<sup>. (this is not a regression in the code, but something that needs to be adapted in the docs) #41043This change will land in tonight (3/29)'s nightly, so we can also poke at them then. I plan on making a users post tomorrow to advertise this bug.
Tagging as a regression so we make sure to take care of it. Marking as
P-highand assigning @GuillaumeGomez and @frewsxcv who are both already working at knocking some of this out.