-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Clarification of soft breaks in image descriptions + request for test case #752
Comments
Why do you wonder about this? |
A markdown-parsing tool I use panics with a newline in the image description: I wonder about the desired behavior mostly out of curiosity. I wanted a test so that this, and other tools, have something to reference for this case. Apologies if this is the wrong forum for this, I haven't engaged with commonmark before. |
So panics are no good of course! |
They're definitely allowed, not just by commonmark but by every markdown implementation I've ever seen: Babelmark link. On whether to collapse the newline to a space in the rendered output: I think we can leave this up to the renderer; in HTML the two options are completely equivalent. |
Image descriptions can sometimes span multiple lines -- for example, if wrapping at 80 characters. This seems to be allowed by the spec, and works on the dingus.
Example:
I am requesting two things:
Clarification on whether the newline should be included in the rendered HTML, or if whitespace should be collapsed into a single space. Right now it is included:
A test case where the image description contains a newline
The text was updated successfully, but these errors were encountered: