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

Option to recognize adjacent but separate block quotes as distinct, separate block quotes #477

Closed
KirkMunro opened this issue Dec 21, 2017 · 1 comment · May be fixed by coderbyheart/contentful-static-website-generator#6
Assignees

Comments

@KirkMunro
Copy link

KirkMunro commented Dec 21, 2017

There are many cases where I use two distinct block quotes next to one another in markdown, with a space or blank line between them, and in these cases I always want the block quotes to be rendered as two separate block quotes. In Visual Studio Code I get this behaviour by default. In GitHub I get this behaviour by default as well. With showdownjs, however, I don't get that behaviour. Instead, the adjacent block quotes are rendered as a single block quote. I recognize that this is the default markdown behaviour; however, it would be very useful to have an option in showdownjs that makes it render block quotes separated by blank lines as separate block quotes.

e.g. I would like this:

> # Block quote  1
>
> This is my first block quote.

> # Block quote 2
>
> This is my second block quote.

To render like this:

Block quote 1

This is my first block quote.

Block quote 2

This is my second block quote.

Instead of like this:

Block quote 1

This is my first block quote.

Block quote 2

This is my second block quote.

Thank you @tivie for everything you do with showdownjs and for considering this request. Happy Holidays!

@tivie tivie self-assigned this Dec 22, 2017
tivie added a commit that referenced this issue Dec 22, 2017
…te blocks

With this option enabled, this:

```md
> some text

> some other text
```

witll result in:

```html
<blockquote>
    <p>some text</p>
</blockquote>
<blockquote>
    <p>some other text</p>
</blockquote>
```

This is the default behavior of GFM.

Closes #477
@tivie
Copy link
Member

tivie commented Dec 22, 2017

Should be available in version 1.8.6

Donate Click here to lend your support to: ShowdownJS website and testing platform and make a donation at pledgie.com

As you know, ShowdownJS is a free library and it will remain free forever. However, maintaining and improving the library costs time and money.
If you like our work and find our library useful, please donate through Pledgie or directly through paypal!! Your contribution will be greatly appreciated and help us continue to develop this awesome library.

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 a pull request may close this issue.

2 participants