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: don't render terminal linebreaks #1777

Closed
wants to merge 1 commit into from
Closed

Conversation

bachbui
Copy link
Contributor

@bachbui bachbui commented Jun 27, 2024

Our markdown syntax does not support teminal line-breaks, either in blocks like a paragraph or just in text.

We had correctly been suppressing rendering the slash-escaped line break when it appeared in a paragraph, but not in text

Our markdown syntax does not support teminal line-breaks, either
in blocks like a paragraph or just in text.

We had correctly been suppressing rendering the slash-escaped line
break when it appeared in a paragraph, but not in text
expect(CommonmarkRenderer.render(document)).toBe("test\\\ntest");
});

test.skip("in text terminating a mark", () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fails, but is at least consistent with the existing behavior we have with terminal linebreaks inside of a mark at the end of a block.

@bachbui
Copy link
Contributor Author

bachbui commented Jul 3, 2024

duped by #1776

@bachbui bachbui closed this Jul 3, 2024
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.

None yet

1 participant