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

[bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines. #2667

Open
milesbigbluedoor opened this issue Dec 2, 2018 · 3 comments
Labels
bug 🐛 Issue concerns a bug. funded on issuehunt 💵 Issue has received funding that will be rewarded to the contributor solving this issue.

Comments

@milesbigbluedoor
Copy link

milesbigbluedoor commented Dec 2, 2018

Current behavior

When using a HTML fenced codeblock and you break multiple attributes over multiple lines, it currently renders all attributes onto a single lines and simultaneously adds those linebreaks to the end of the codeblock.

Editor:

screenshot 2018-12-02 at 15 27 42

Preview:

screenshot 2018-12-02 at 15 28 23

Expected behavior

The fenced block should preview as it is formatted in the editor.

Steps to reproduce

  1. Create a fenced HTML codeblock
  2. Define a tag such as a <div>
  3. Add multiple attributes and break them out over multiple lines

Environment

  • Version : 0.11.11 (0.11.11)
  • OS Version and name : macOS Mojave (v10.14)
@milesbigbluedoor milesbigbluedoor changed the title Fenced HTML codeblock reformatting attributes broken out over multiple lines. [bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines. Dec 2, 2018
@milesbigbluedoor milesbigbluedoor changed the title [bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines. [bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines. 🐛 Dec 2, 2018
@milesbigbluedoor milesbigbluedoor changed the title [bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines. 🐛 [bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines. Dec 2, 2018
@ZeroX-DG ZeroX-DG added the bug 🐛 Issue concerns a bug. label Dec 2, 2018
@IssueHuntBot
Copy link

@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt

@richardtks
Copy link
Contributor

@milesbigbluedoor, Hi, I am not able to reproduce in the current master branch, maybe this has been fixed? Can you provide your .md file, so that I can test your .md in master branch as well?

Editor mode:
image

Preview:
image

@milesbigbluedoor
Copy link
Author

@richardtks I just messed around with my preferences and discovered this is an issue caused by the Sanitization option under Interface being set to Allow dangerous html tags. Can you try setting your Sanitization setting to the same and see if that breaks it?

@Flexo013 Flexo013 added funded on issuehunt 💵 Issue has received funding that will be rewarded to the contributor solving this issue. and removed 💵 Funded on IssueHunt funded on issuehunt 💵 Issue has received funding that will be rewarded to the contributor solving this issue. labels Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issue concerns a bug. funded on issuehunt 💵 Issue has received funding that will be rewarded to the contributor solving this issue.
Projects
None yet
Development

No branches or pull requests

6 participants