Skip to content
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

Description

@kilometerlime

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)

Activity

  1. 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
  2. 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
  3. 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
  4. IssueHuntBot commented on Dec 15, 2018

    @IssueHuntBot

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

  5. richardtks commented on Dec 16, 2018

    @richardtks
    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

  6. kilometerlime commented on Dec 16, 2018

    @kilometerlime
    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?

  7. added
    funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.
    and removed
    funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.
    on Jul 25, 2019
  8. shriram-svg commented on May 11, 2026

    @shriram-svg

    Submitted a fix for this funded issue: #3789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions