-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Last item in lists is not wrapped in <p> #93
Comments
Frankly I cannot. Can you provide markdown input and expected html output? |
You can see that some of the text in lists is bold and some is not. If you cannot see it on the website you can inspect the source. Here is the markdown: https://github.com/hexpm/hex/blob/master/lib/mix/tasks/hex/publish.ex#L39-L52 |
I succeeded to extract an offending case
|
I was meaning to find a reproducing case but got bogged down on an unrelated issue. I am sorry for making you find it. Thank you @RobertDober ❤️ |
np @ericmj I just needed to read the title... |
I kinda have a fix for this, honestly the semantics of list items in paras goes a little over my head right now. Therefore, for starters I decided all @pragdave your guidance would be appreciated. And anybody I would be grateful for some pointers or explanations on that account. |
My understanding is that the s are added if there is a blank line after On Sun, Oct 2, 2016 at 5:43 AM, Robert Dober notifications@github.com
|
Thank you @pragdave I will review the code a little more to be sure to not have violated that principle. After merging this issue branch it might be a good idea to release 1.0.2. |
Don't you always have to terminate the list with a blank line after the last item? |
@ericmj that is true, and BTW, if you are interested in technical details, it was the source of the bug, as the parser did not put the "spaced" flag on the last list item, never. And it is this never which still bugs me. I guess one can trust the tests and the code is releasable in case the bugfix is urgently needed. Otherwise I'd like to investigate some further, but that will take some time. |
A bugfix is not needed urgently so on my part please take your time. |
thx, well noted |
I did some research here are three possible behaviors.
I like 2. best for it's simplicity, and because that is what we have right now on master. However it might be the most violent concerning backward incompatibility. |
@pragdave I guess we have enough in the 1.0.2 milestone to release. Do you agree? Thank you in advance. |
You can see the formatting issue on https://hex.pm/docs/tasks#hex_publish.
The text was updated successfully, but these errors were encountered: