-
Notifications
You must be signed in to change notification settings - Fork 645
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
Support formatting in description #2280
Comments
+1 👍 |
+1 |
1 similar comment
👍 |
+1 |
1 similar comment
+1 |
I think we need some specs for this. Questions that would be nice to answer: Functional
Technical
|
From the functionals list, I think 7. is the most important one to answer before building this as a feature. @yishaigalatzer can answer if we want the VS plugins to support formatting here or not. |
I'm curious if the specs of the nuspec file should be changed for this. Is this the only spec or is there a more official one? |
That's the most official one. |
Thanks @maartenba. Then no spec change is needed (dependent of functional 2 of course), as there is nothing specified about the content of the elements. (no statements like plain text or non-allowed content). 👍 |
I agree 7 is the most important one. Security is another one. The issue for nuspec changes should go to the home repo, and so do the vsix changes. This will mean releasing all the way back to older versions of vs, so this could become quite a large item. Lets open one, and unfortunately this will have to wait until we resolve more critical client issues, as we are making some massive UI changes and don't have the capacity to test and update older clients |
Just an idea: perhaps a nuspec could contain 2 elements for the description (and other fields):
Older clients that don't know how to handle Markdown would just ignore The drawback is that package authors would have to maintain the fields separately. |
That's a nice idea. |
What if there was a Benefits:
|
What if we'd just read the project URL from the NuSpec and load the README from there by convention? |
@maartenba that thought also crossed my mind, but I don't think we can assume all project URL's are pointing to a source repository |
Richard has built this in his sample nuget site. Sent from my Windows Phone From: Xavier Decostermailto:[email protected] @maartenbahttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fmaartenba&data=01%7c01%7cyigalatz%40microsoft.com%7cba7290cd133040326b9d08d2cf23ddcb%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=C0bmrCdzfqJYk8mLchDAk2LOfxP3Wjbeai3YWbIwHCo%3d that thought also crossed my mind, but I don't think we can assume all project URL's are pointing to a source repository — |
We have it on MyGet too, can whip up a prototype in the next days? |
Is there a solution to this that would not require an extra network request I would vote against full HTML support with the dangers of XSS that could Jeff On Wed, Oct 7, 2015 at 10:41 AM, Maarten Balliauw [email protected]
|
I don't really understand this. What has this to do with older versions? Is this functional 6 (backwards-comp)?
Not every package is public, so maybe this works for nuget.org, but it's a bit strange on the intranet.
This will fix functional F6 and F7 (Visual Studio). Another option is to use a markdown attribute, e.g.
Which functional will fix this? F6? IMO this is a nice solution, but really another feature request.
Yes, I think we should not allow any html. But what should be done with the HTML? (removal, escaping, etc)? I think that maybe F7 isn't a high prio thing. Right now you already see markdown markup in nuget packages. So that will change for the nuget gallery and in a later stage for the visual studio extension? |
Among the tenets of the NuGet package clients and service is the ability to We need to operate as though every package is in the public. Otherwise, Could we avoid adding any markup to the nuspec document and detect if a " Jeff On Wed, Oct 7, 2015 at 11:17 AM, Julian Verdurmen [email protected]
|
If the nuspec file should be backward- and forward-compatible, you can't change it ever? Even adding an XML attribute / element isn't possible?
I like that idea :) But now sure how backward/forward-compatible this solution is. |
Honestly, we would like to spend effort on revamping the front end completely, rather than do small features like this one by one. Which is why this feature is on the backlog and low priority. |
markdown support would be nice! |
Indeed but the discussion has been killed IMO. And that's bad. |
@karann-msft , is this something planned for the new site? |
for all nuget gallery related issues please tag @jonwchu |
ping! I don't follow the argument regarding backwards compatibility. If you add support for markdown in the description field why do it matter if old/other clients do not support it? Isn't it up to the package owner to decide if that's something the owner can accept or not? If one can't, one will not use markdown. This issue is now over two years old. Isn't it time to implement it? Shouldn't be that hard to run |
Indeed, if someone just decide which solution is OK, then it should be really easy to implement. |
This would be nice to see put into place. |
Supporting markdown requires us to reformat our website a bit so that important information is not lost due to a big markdown description. We plan to do the minimal reformatting required so that we can start addressing features like this one to make the package description and related information richer. Stay tuned. |
So, another 2 years at least? I won't hold my breath, lol. ;p |
@anangaur you have to elaborate. The PackagesController contains an action called It's in that method that you can use markdown to process
and then in the view update the code: @if (Model.Package.UseMarkdown)
{
Html.Raw(model.HtmlDescription);
}
else
{
foreach (var line in Model.Description.ToStringSafe().Split('\n'))
{
<p>@line</p>
}
} The Regarding the new column in the database: simply set it to I don't understand why that would affect everything else in the site? |
Is this item still active? Having some support for markdown (or other formatting) in description and release notes would make them much more useful. Markdown is generally human readable, so it seems like a good choice. |
@erick-thompson , we are currently working on this feature. |
@skofman1 Allow me to tell you that the spec is getting on the wrong way: For the good sake, WE JUST NEED to use markdown inside nuspec files ('description, releaseNotes an summary') and GET IT RENDERED properly on Visual Studio and Nuget Gallery. THIS IS THE MVP; Specific repository features (GitHub, Bitbucket, or TFVC) must be added later. |
@ederbond We need to support older clients that do not understand markdown and we cannot go back in time to fix this for those clients. An alternative solution that we think works is to support "Documentation" for packages that can take markdown text. The solution has following parts:
While we are done with 1 and 2 as part of 2017 Interns project, we are yet to get started on 3 and 4. We did not want to wait for all 4 parts to complete before rolling out the feature. We have released the work we did so far for people who want to try it out (the current experience may not be an ideal one) and provide us feedback to improve the experience further. We would love to hear further comments and feedback on the feature and accordingly we will proceed for 3 and 4. |
Definitely excited to see this - we've wanted have READMEs for NuGet packages for a while. Excited to see the phase that brings a README.md directly inside the package. |
Update on this topic: The discussion issue for this feature is here: NuGet/Home#6873 |
It would be nice to be able to add some basic formatting (perhaps using markdown) in the free-text fields of the nuspec file (
summary
,description
andreleaseNotes
). Currently it's hard to display the release notes properly.See also this issue on CodePlex: https://nuget.codeplex.com/workitem/937
The text was updated successfully, but these errors were encountered: