Skip to content

Issue with col-width calculation #50

Description

@SL-Gundam

Hi,

I ran into an issue with Markdownify because it calculates table col-width based on string length. This resulted in incredibly long col-widths because there were several paragraphs of text in a field.
So what if a string is actually multiple lines. It would be better to calculate the longest line length instead of the full string.

But i don't know if multiple lines in markdown tables is even a possibility.

Option A: Prevent tables when a field contains multiple lines of text
Option B: Calculate longest line length in the string instead of the full string.

I have a version where option B works.
Should i make a pull request for option B or should i start work on option A? Or some other method to deal with this.

SL-Gundam@63d6d4f
SL-Gundam@3bb0bff

Thanks again for this great library.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions