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

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

Open
adam-p opened this issue Jan 31, 2014 · 2 comments
Open

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

adam-p opened this issue Jan 31, 2014 · 2 comments

Comments

@adam-p
Copy link
Owner

adam-p commented Jan 31, 2014

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.)

@adam-p
Copy link
Owner Author

adam-p commented Mar 9, 2014

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

@nchammas
Copy link

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
Projects
None yet
Development

No branches or pull requests

2 participants