-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
[Feature][UI] Description field - support simple markup #2796
Comments
On my system (Kubuntu using mono 5.20.1.19) line-breaks are displayed, which OS are you using? It's only a handful of mods using the 'Easiest' to implement would probably be Microsoft's RTF (in case mono is supporting it), but that's a pain to write, looking at the given example. Everything else will be really complicated, since we either need to parse it to RTF and display it in a Or somebody finds a good library with the right licence. |
I've been mostly working on Windows recently (I miss my Linux!!) so possibly a "\r\n" vs "\n" issue (I put "\n" into the description) . Would have thought it would render either correctly or incorrectly regardless of host OS. So that might be something to look into. And yes, I know only a few mods use "Description" so far, but it would be nice if more did, allowing users to browse mods in CKAN instead of having to click on the links to get more information. Was just a thought that making it look more appealing might garner more support. So yes, this is mostly a very low priority wishlist item. |
I've been looking at options for text formatting to address some unrelated issues with the auto update dialog, and it looks like this may not be possible to do well in a cross platform way. Mono's (Update: It doesn't seem to (handle any actual formatting); I tried using RTF syntax to make the font bold and larger, and it had no effect. Mono ships a plain textbox named And Mono's
(Side note, I do have So the two big obvious options for displaying formatted text in WinForms, are essentially Windows-only solutions. Even if a third party control could do this (I'm skeptical because if it was that easy, why can't Mono do it?), that would amount to embedding a web browser in ckan.exe, which seems like kind of extreme overkill for one or two dialogs. |
Problem
Is your feature request related to a problem? Please describe.
Longer descriptions are just a contiguous unformatted blob of text, making it difficult to read.
Suggestions
Describe the solution you'd like
Support a recognised markup scheme (my favourite would be "Markdown", or at least a sub-set of it) in order to allow people to add nice-looking descriptions for their mods from within the CKAN GUI.
Describe alternatives you've considered
Support a custom very simple markup format with a very restricted set of markup (eg, newlines, bold, italic), the most important of which is support for newlines.
Possible Issues
How would the Command-line tools render this?
Additional context
Look at "Nehemiah Engineering Orbital Science" for a mod which would benefit from at least having line-breaks in its description. (In fact, line-breaks are in the meta-data, but are not displayed)
The text was updated successfully, but these errors were encountered: