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

Element “blockquote” should be better styled #305

Open
fladd opened this issue Feb 14, 2016 · 7 comments
Open

Element “blockquote” should be better styled #305

fladd opened this issue Feb 14, 2016 · 7 comments

Comments

@fladd
Copy link

fladd commented Feb 14, 2016

According to the official Markdown page, block quotes should work like this:

> This is a block quote

However, this has no effect in remark.

Am I doing something wrong?

@des4maisons
Copy link

@fladd I ran into the same thing.

The markup correctly generates <blockquote> HTML elements, but these are not styled.

I added this CSS to my project, which made it look similar to how I wanted:

blockquote {
  border-left: 0.3em solid rgba(0,0,0,0.5);
  padding: 0 15px;
  font-style: italic;
}

Maybe there should be some default styling for block quotes?

@fladd
Copy link
Author

fladd commented Feb 16, 2016

@des4maisons Thanks a lot, that does the trick indeed!

@fladd
Copy link
Author

fladd commented Mar 10, 2016

I guess, yes. You might want to consider styling them in the default template though, as they are part of standard Markdown.

@Tschis
Copy link

Tschis commented Nov 30, 2017

Thanks @des4maisons for the fix. But as @fladd stated, I really think this should be part of the default template.

@utdrmac
Copy link

utdrmac commented Feb 23, 2018

+1 bump on this to get something added to official CSS. Banged my head against the wall for 30m trying to figure out why my blockquotes were not getting rendered.

@tripu tripu changed the title Block quotes not working Element “blockquote” should be better styled Feb 23, 2018
@tripu
Copy link
Collaborator

tripu commented Feb 23, 2018

I edited the title of the issue to better describe the actual problem.

@sag1v
Copy link

sag1v commented Jul 8, 2018

I would add to @des4maisons 's solution some quotes symbols.

This is my setup:

blockquote::before {
   content: open-quote;
   margin-right: 5px;
   font-size: 1.2em;
}

blockquote {
  border-left: 0.3em solid #ccc;
  padding: 0 15px;
  font-style: italic;
  color: #ccc;
  quotes: "\201C""\201D""\2018""\2019";
}

blockquote::after {
  content: close-quote;
  margin-left: 5px;
  font-size: 1.2em;
}

And i get this:
quotes

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

7 participants