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

Fix issues with tables during a round-trip parsing CM and then producing CM again. #65

Merged
merged 4 commits into from
Feb 13, 2018

Conversation

jerryjvl
Copy link
Contributor

When parsing Commonmark, traversing the nodes and then re-generating Commonmark, table rows longer than 120 characters are broken as a result of the hard-coded column wrapping.

This patch introduces an optional rendering parameter to specify the width, so callers can opt for "0" to omit all wrapping when necessary (or choose a different wrapping column as desired).

@kivikakk
Copy link
Collaborator

Thank you! ❤️

@jerryjvl
Copy link
Contributor Author

That was a slightly quicker response than I was anticipating :)

@kivikakk
Copy link
Collaborator

:D I happen to be awake and my mail client was open!

@kivikakk kivikakk merged commit 15eb57a into gjtorikian:master Feb 13, 2018
@jerryjvl
Copy link
Contributor Author

😃

@jerryjvl jerryjvl deleted the render-with-optional-width branch February 13, 2018 01:27
@gjtorikian
Copy link
Owner

That was a slightly quicker response than I was anticipating :)

That's because @kivikakk is amazing. 🤓

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

Successfully merging this pull request may close these issues.

3 participants