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 upEnd footnote definition with one blank line. #21
Conversation
This comment has been minimized.
This comment has been minimized.
googlebot
commented
Apr 10, 2016
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). Once you've signed, please reply here (e.g.
|
raphlinus
added some commits
Apr 10, 2016
This comment has been minimized.
This comment has been minimized.
googlebot
commented
Apr 10, 2016
|
CLAs look good, thanks! |
This comment has been minimized.
This comment has been minimized.
|
Fixes issue #20, see more discussion there. |
This comment has been minimized.
This comment has been minimized.
|
If this is going to be merged, |
This comment has been minimized.
This comment has been minimized.
|
I need this to be merged. Do you know when this we'll done? |
This comment has been minimized.
This comment has been minimized.
|
In order to merge this, I need more confidence that it's compliant with the spec, which I currently don't have. Otherwise, if you need non-spec-compliant behavior for compatibility, then divergence from the spec needs to be a flag that gets set. |
This comment has been minimized.
This comment has been minimized.
|
Seems like it is. |
This comment has been minimized.
This comment has been minimized.
|
Ah, ok. I'll play a bit with whether this PR actually does the right thing, and if so I'll merge it relatively soon. |
This comment has been minimized.
This comment has been minimized.
|
Great, thanks a lot! PS: pulldown-cmark is now the markdown parser used in rustdoc (congrats!). |
GuillaumeGomez
referenced this pull request
Mar 30, 2017
Merged
Add support for image, rules and footnotes #40919
This comment has been minimized.
This comment has been minimized.
I don't think this shows anything in favor or against. That tool has no support for footnotes so it interprets It appears as though the footnote spec in this repository treats them more like link references than list items. This is probably not right because link references can only contain a small number of specific items, while a footnote seems like it should be a container block. I also just left a comment at #20 (comment). |
bors
added a commit
to rust-lang/rust
that referenced
this pull request
Apr 2, 2017
steveklabnik
referenced this pull request
Apr 5, 2017
Closed
Tracking issue for hoedown -> pulldown regressions #40912
This comment has been minimized.
This comment has been minimized.
|
Based on discussion in https://internals.rust-lang.org/t/what-to-do-about-pulldown-and-commonmark/5115 I am inclined to merge this. Any final comments? Thanks to everybody who's weighed in here, and sorry for not taking action on it sooner. |
This comment has been minimized.
This comment has been minimized.
|
Finally! \o/ |
This comment has been minimized.
This comment has been minimized.
|
Since this would be a "breaking change" anyway, may I suggest breaking a little further and disallowing blocks inside footnote definition (if it is easy enough)? For example:
Should produce either:
or
So that this would just be a baseline implementation of footnotes. And further changes based on whichever spec that we choose to adopt will not "break" much. Since pulldown-cmark is now being used by rustdoc, implementation-specific features should be kept as thin as possible, in my opinion. |
raphlinus
merged commit 13918e7
into
master
Jun 21, 2017
1 check passed
This comment has been minimized.
This comment has been minimized.
|
Thanks! |
This comment has been minimized.
This comment has been minimized.
|
I'm merging this because it seems like an overall improvement. The suggestion by critiqjo seems valid, but I haven't had time to research it in detail. I'd happily take a patch for it as a further refinement, as long as there's evidence it won't cause regressions, etc. This is released as v0.0.15. |
raphlinus
deleted the
issue20
branch
Jun 21, 2017
This comment has been minimized.
This comment has been minimized.
|
This broke several footnotes spec tests:
It's important to pass all these since they are basically the only definition of this particular footnote spec. I haven't looked at them, but I am guessing the tests need to be updated. |
raphlinus commentedApr 10, 2016
According to the linked issue, a footnote definition should end with a
blank line. This is similar to the rule for lists, which end with two
blank lines. The code previously required two blank lines in both
cases, this patch changes it to just one for footnote definitions.
Fixes issue 20.