Skip to content

Set the minimum padding for header and seperator #24

@nicolas-rdgs

Description

@nicolas-rdgs

Sometime we have large dataset and our tool that render the markdown have a size limit in some custom fields.

Is there a way to just use the minimal seperator to reduce the number of characters? For example:

Actually:

print(md.set_params(row_sep="markdown", quote=False, padding_width=0).get_markdown())
|            _time            | field1| field2|field3|       field4       |  field5 |
|-----------------------------|-------|--------|---------|---------------------|---------|
|2025-10-03T12:54:42.000+00:00|xxx|xxxx|   23456   |textextextextext|textextextext|

to

|_time|field1|field2|field3|field4|field5|
|-|-|-|-|-|-|
|2025-10-03T12:54:42.000+00:00|xxx|xxxx|23456|textextextextext|textextextext|

It still a valid markdown table for us and we limit the number of character considerably.

Do you think is it possible?
Thank you

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions