Skip to content

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

@Yuelioi

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,
  )

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