This repository was archived by the owner on May 12, 2026. It is now read-only.
[bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines. #2667
Copy link
Copy link
Open
Labels
bug 🐛Issue concerns a bug.Issue concerns a bug.funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.Issue has received funding that will be rewarded to the contributor solving this issue.
Description
Activity
- changed the title
[-]Fenced HTML codeblock reformatting attributes broken out over multiple lines.[/-][+][bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines.[/+]on Dec 2, 2018 - 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. :bug:[/+]on Dec 2, 2018 - changed the title
[-][bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines. :bug:[/-][+][bug] Fenced HTML codeblock reformatting attributes broken out over multiple lines.[/+]on Dec 2, 2018 @issuehuntfest has funded $20.00 to this issue. See it on IssueHunt
@richardtks I just messed around with my preferences and discovered this is an issue caused by the
Sanitizationoption underInterfacebeing set toAllow dangerous html tags. Can you try setting your Sanitization setting to the same and see if that breaks it?- addedfunded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.Issue has received funding that will be rewarded to the contributor solving this issue.and removedfunded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.Issue has received funding that will be rewarded to the contributor solving this issue.
on Jul 25, 2019 Submitted a fix for this funded issue: #3789
Metadata
Metadata
Assignees
Labels
bug 🐛Issue concerns a bug.Issue concerns a bug.funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.Issue has received funding that will be rewarded to the contributor solving this issue.


Current behavior
When using a
HTMLfenced 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:
Preview:
Expected behavior
The fenced block should preview as it is formatted in the editor.
Steps to reproduce
<div>Environment