Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Yuelioi opened this issue Aug 31, 2022 · 0 comments
Open

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

Yuelioi opened this issue Aug 31, 2022 · 0 comments

Comments

@Yuelioi
Copy link

Yuelioi commented Aug 31, 2022

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,
  )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant