Bug 1831315
Summary: | OLM: Tables with long strings don't render well in markdown viewier | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | nathan.brophy |
Component: | Management Console | Assignee: | Samuel Padgett <spadgett> |
Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | aos-bugs, jokerman, spadgett, xiaocwan |
Target Milestone: | --- | ||
Target Release: | 4.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Previously, markdown tables for OLM operators could render poorly when they had a lot of content. The web console has improved the display of these tables and added a horizontal scrollbar when necessary.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-13 17:34:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Attachments: |
Description
nathan.brophy
2020-05-04 21:29:44 UTC
Created attachment 1684981 [details] attachment 2 [details] nested lists not rendered properlly Created attachment 1684982 [details] attachment 3 [details] table format not rendered correctly What markdown format is supported by the markdown renderer? If 1 and 2 are supported in the markdown renderer today, then that is fine, I just need to know what format the renderer is expecting if not github flavored. The table display appears to be a CSS issue however. We use showdown: https://github.com/showdownjs/showdown It looks like we can set it to support GitHub flavor: https://github.com/showdownjs/showdown#flavors Can you share the CSV so we can test? Adding in a small example from the CSV: spec.description: | README description goes here: - this list - is flat - test - this list - is nested - test - this is a list ``` this is an indented code block ``` | example of a header with long name | this | table | has | a lot | of | columns | | ---------------------------------- | ---- | ----- | --- | ----- | -- | ------- | | data data data data data data data data data data data data data data data data data data ata data data data data data data data data data data data data data data data data data ata data data data data data data data data data data data data data data data data data | data | data | data | data | data | data | | data | data | data | data | data | data | data | | data | data | data | data | data | data | data | | data | data | data | data | data | data | data | It seems like it is possible to render the above today (minus the table formatting) if write like the following: - this list - is flat - test - this list - is nested - test - this is a list ``` this is an indented code block ``` Here is a more complex and much larger README to use as a test case as well https://github.com/IBM/charts/blob/master/stable/ibm-websphere-liberty/README.md The 4 space requirement is intentional behavior from showdown, which claims it's required by the spec and 2 spaces can cause problems. https://github.com/showdownjs/showdown/commit/d51be6e https://github.com/showdownjs/showdown/releases/tag/1.5.0 There is a `disableForced4SpacesIndentedSublists` option to let 2 spaces work, but even if set, 4 spaces are treated as one level of indentation. So - this list - is nested - test renders as - this list - is nested - test I'm hesitant to change that since it could change rendering of some other operator descriptions. I would recommend using 4 spaces which should work everywhere, including GitHub, and doesn't require an OpenShift version with this bug fix. The table problem seems to be because we're setting `word-break: break-word`, which causes later columns to get squished. I plan to disable that and switch to horizontal scrolling tables (which is also what GitHub does). Lowering severity since the list spacing is working as intended. I agree, can switch over to using 4 spaces everywhere for these README descriptions instead of 2. Table formatting fix is not as high priority, and can come with a CSS change. Thank you for debugging and working through this with me. Created attachment 1687532 [details]
Verification screenshot
Checked on 4.5.0-0.nightly-2020-05-11-202959 Attached the verification screenshot. Is that the expected result? (In reply to XiaochuanWang from comment #11) > Checked on 4.5.0-0.nightly-2020-05-11-202959 > Attached the verification screenshot. > Is that the expected result? Yes, that is the expected result. Thanks! This could be Verified as above result. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409 |