ronn-ng icon indicating copy to clipboard operation
ronn-ng copied to clipboard

Markdown 'Table'

Open Maxzor opened this issue 3 years ago • 3 comments

Hello, I am facing some kind of a non-standard table in markdown: Look for --setprofile SETPROFILE: The Compute Profile accepts 1 or n parameters, either in there: https://github.com/RadeonOpenCompute/rocm_smi_lib/blob/master/python_smi_tools/README.md

--setprofile SETPROFILE:
    The Compute Profile accepts 1 or n parameters, either the Profile to select (see --showprofile for a list
    of preset Power Profiles) or a quoted string of values for the CUSTOM profile.
    NOTE: These values can vary based on the ASIC, and may include:
SCLK_PROFILE_ENABLE  - Whether or not to apply the 3 following SCLK settings (0=disable,1=enable)
    NOTE: This is a hidden field. If set to 0, the following 3 values are displayed as '-'
SCLK_UP_HYST         - Delay before sclk is increased (in milliseconds)
SCLK_DOWN_HYST       - Delay before sclk is decresed (in milliseconds)
SCLK_ACTIVE_LEVEL    - Workload required before sclk levels change (in %)
MCLK_PROFILE_ENABLE  - Whether or not to apply the 3 following MCLK settings (0=disable,1=enable)
    NOTE: This is a hidden field. If set to 0, the following 3 values are displayed as '-'
MCLK_UP_HYST         - Delay before mclk is increased (in milliseconds)
MCLK_DOWN_HYST       - Delay before mclk is decresed (in milliseconds)
MCLK_ACTIVE_LEVEL    - Workload required before mclk levels change (in %)

BUSY_SET_POINT       - Threshold for raw activity level before levels change
FPS                  - Frames Per Second
USE_RLC_BUSY         - When set to 1, DPM is switched up as long as RLC busy message is received
MIN_ACTIVE_LEVEL     - Workload required before levels change (in %)

It gives with ronn --roff:

     roff: ./README                                   
tbl:<standard input>:22: unrecognised format 'O'
tbl:<standard input>:22: giving up on this table

Whatabouta nice table such as one that can be found in man 3 abs?

.TS
allbox;
lb lb lb
l l l.
Interface	Attribute	Value
T{
.BR abs (),
.BR labs (),
.BR llabs (),
.BR imaxabs ()
T}	Thread safety	MT-Safe
.TE

I don't speak ruby :< Best regards and thank you for the tool, Maxime

P.S. You already do that for correctly-formatted markdown tables! Awesome!

Maxzor avatar Jan 30 '22 06:01 Maxzor

Bold in table headers is not translated Cannot multi-line in a markdown table cell with a html <br> tag. Found a bad workaround at debian librocm-smi-tools package, roc-smi manpage, uploading soon.

Maxzor avatar Jan 30 '22 07:01 Maxzor

Looks like it works just without the <br> tag. My fix in the rocm-smi repo should appear sometime soon. https://github.com/RadeonOpenCompute/rocm_smi_lib/commit/275108f5b949f9661d0da65cbe4defaa952c8d28 (<--this link will be broken for a few days until we publish the change upstream)

Markdown:

| Setting             | Description                                        |
|---------------------|----------------------------------------------------|
| SCLK_PROFILE_ENABLE | Whether or not to apply the 3 following SCLK settings (0=disable,1=enable) |
|                     | **NOTE: This is a hidden field. If set to 0, the following 3 values are displayed as '-’** |
| SCLK_UP_HYST        | Delay before sclk is increased (in milliseconds)   |
| SCLK_DOWN_HYST      | Delay before sclk is decresed (in milliseconds)    |
| SCLK_ACTIVE_LEVEL   | Workload required before sclk levels change (in %) |
| MCLK_PROFILE_ENABLE | Whether or not to apply the 3 following MCLK settings (0=disable,1=enable) |
|                     | **NOTE: This is a hidden field. If set to 0, the following 3 values are displayed as '-'** |
| MCLK_UP_HYST        | Delay before mclk is increased (in milliseconds)   |
| MCLK_DOWN_HYST      | Delay before mclk is decresed (in milliseconds)    |
| MCLK_ACTIVE_LEVEL   | Workload required before mclk levels change (in %) |

Output: image

dmitrii-galantsev avatar Oct 23 '23 21:10 dmitrii-galantsev

@apjanke You can close the issue :)

dmitrii-galantsev avatar Oct 23 '23 21:10 dmitrii-galantsev