Skip to content

Line-break tag noise added to multi-line HTML #157

Description

@adam-p

Reproduction:

  1. Take some multi-line HTML, such as the output from here: http://www.tablesgenerator.com/html_tables
  2. Paste into an email and render. There will be a whole bunch of empty lines above the rendered table.
  3. Do it again with a breakpoint at the rendered output. You'll see a bunch of <br> tags have been added.

The extra tags either shouldn't be there at all before being passed to marked.js, or should be stripped (by a custom renderer?).

(I don't have time to check right now, but I'm not entirely sure why they're there at all.)

Activity

  1. adam-p commented on Mar 9, 2014

    @adam-p
    OwnerAuthor

    Related to (and possibly dependent on) markedjs/marked#115.

  2. nchammas commented on May 22, 2015

    @nchammas

    For the record, I'm seeing this issue as well with HTML tables. Rendering them adds many blank lines immediately before the table.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions