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

Handle newlines in headings, table cells #58

Closed
wooorm opened this issue Mar 6, 2020 · 0 comments
Closed

Handle newlines in headings, table cells #58

wooorm opened this issue Mar 6, 2020 · 0 comments
Labels
💪 phase/solved Post is done 🐛 type/bug This is a problem

Comments

@wooorm
Copy link
Member

wooorm commented Mar 6, 2020

Subject of the issue

<h3>alpha<br>bravo and <td>alpha<br>bravo</td> can in no way be represented in Markdown (except by using HTML in Markdown).

The h1 and h2 versions can be used, if the heading is serialised as a Setext heading:

alpha\
bravo
===

Your environment

n/a

Steps to reproduce

<h3>NEW YORK<br>CHARLES E. MERRILL CO.<br>1907</h3>

Expected behaviour

A single space is probably fine. May need a handler.

Actual behaviour

### NEW YORK᛫᛫
CHARLES E. MERRILL CO.᛫᛫
1907
@wooorm wooorm changed the title break nodes must not occur in h3+ headings, table cells Handle newlines in headings, table cells Mar 7, 2020
@wooorm wooorm closed this as completed in fdafac8 Mar 7, 2020
@wooorm wooorm added the 💪 phase/solved Post is done label Apr 12, 2021
wooorm added a commit that referenced this issue Jan 12, 2023
This was originally added for GH-58, but `mdast-util-to-markdown`
(`remark-stringify`) now solves this, much better.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 phase/solved Post is done 🐛 type/bug This is a problem
Development

No branches or pull requests

1 participant