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

Multi-paragraph Blockquotes #5

Closed
wants to merge 3 commits into from

Conversation

bensheldon
Copy link

This is a duplicate of #4, but with a spec.

result << ">#{contents}\n"
contents.split("\n").each do |part|
if not part.strip.empty?
result << ">#{part}\n\n"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why double \n\n?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a reference from Daring Fireball:

> This is a blockquote.
> 
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote
<blockquote>
    <p>This is a blockquote.</p>

    <p>This is the second paragraph in the blockquote.</p>

    <h2>This is an H2 in a blockquote</h2>
</blockquote>

Any ideas?

@bensheldon
Copy link
Author

I'm not really sure how to move this forward as I was trying to assist the moving forward of #4. Closing this for now.

@bensheldon bensheldon closed this Jun 29, 2015
@29decibel
Copy link
Owner

Thanks @bensheldon .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants