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

Change code fence html line break to newlines #1333

Merged
merged 1 commit into from
Aug 22, 2020

Conversation

ang-zeyu
Copy link
Contributor

@ang-zeyu ang-zeyu commented Aug 22, 2020

What is the purpose of this pull request? (put "X" next to an item, remove the rest)

• [x] Bug fix

Fixes #1277

What changes did you make? (Give an overview)
Change <br> to \n in the code fence renderer

Testing instructions:

Proposed commit message: (wrap lines at 72 characters)
Change code fence html line break to newlines

The codeBlockCopyButtons plugin relies on the textContent of the code
fence html element.

The textContent does not convert html
elements into newlines.

Let's change the code fence markdown rendering function to use newlines
instead of
elements hence.

The codeBlockCopyButtons plugin relies on the textContent of the code
fence html element.

The textContent does not convert html <br> elements into newlines.

Let's change the code fence markdown rendering function to use newlines
instead of <br> elements hence.
@ang-zeyu ang-zeyu added this to the v2.15.3 milestone Aug 22, 2020
@ang-zeyu ang-zeyu merged commit 943bf99 into MarkBind:master Aug 22, 2020
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.

Copy-code plugin doesn't copy line breaks
1 participant