Skip to content

markdown link was truncated because the limit of BODY_WIDTH 78 #131

Description

@Yuelioi

today, i try it to convert html to md,but img url is not right

in the __init__.py , optwrap function

# line 918
wrapped = wrap(
  para,
  self.body_width,
  break_long_words=False,
  subsequent_indent=indent,
)

this will limit url to 78,
maybe we change it to ( like this ? ):

if (para.startswith("![]")):
  wrapped = wrap(
      para,
      999,
      break_long_words=False,
      subsequent_indent=indent,
  )
else:
  wrapped = wrap(
      para,
      self.body_width,
      break_long_words=False,
      subsequent_indent=indent,
  )

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions