-
Notifications
You must be signed in to change notification settings - Fork 530
[Feature Request] <cite> in <blockquote> #131
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
Comments
This is wrong. You shall not put the author's name into Below is the example,
|
The use of this element is indeed not so simple (see http://html5doctor.com/blockquote-q-cite/#cite or http://devdocs.io/html/cite). I think that elements |
To add to the confusion about these elements, the specifications seem to have been updated recently, as described in this recent article (http://html5doctor.com/cite-and-blockquote-reloaded/). However, I doubt that this can change anything for this issue... |
Well, I didn't really expect you conservative guys to change anything, but this last definition pretty much matches my use of the tags, doesn't it? Finally the syntax can be used in a way that makes some sense! |
I'm still hoping for some HTML5 in Markdown at some point. Maybe with an option to turn it on. There are a handful, like figure, that would be nice additions. The HTML5doctor examples make use of footer. A List Apart uses figure. |
In case someone is interested, I've made a "HTML5 update" wiki page to collect ideas a while ago. https://github.com./michelf/php-markdown/wiki/HTML5-update The idea of formalizing how to indicate the source of a blockquote is a good idea. I don't feel the source should look as if it was "inside" the blockquote in the Markdown document though. What would you feel about this instead:
The caption could be allowed above too. I'm not too sure what the HTML markup should be, but this syntax would fit well with the proposed table and figure captions syntax in the HTML5 update wiki document. |
Considering that the same syntax would be used for captions in general, I think it's a good solution. If it isn't inside the quote, then the -- syntax doesn't make much sense and this has a more general meaning. |
Thanks for pointing out that wiki entry. I had no idea it was there. I added a couple points to it. A reference to the Markdown Extra Extended style for Perhaps the HTML could be similar to A List Apart's. A blockquote with a paragraph below that includes a class when by itself. And when using a figure, depending on its location, stick it inside the figcaption? (Not sure what to do about
Becomes...
With proposed Markdown Extra figure syntax...
Becomes...
With alternative Markdown Extra Extended syntax for figure... It could be...
Or...
And what about keeping things separate? Perhaps being more modular would allow for writers to use variations and not set things in stone.
Becomes...
Not sure how you'd do that with the proposed Markdown Extra method. Perhaps?
Just a bit of brainstorming... Sorry for all the ellipses. ;-) |
@vagari Actually, what I had in mind is that
would create a caption for the quote. Since there's no standard way to add a caption to a quote in HTML, we can be creative in the output (just like footnotes). It could use I'm still on the fence about the syntax. It seems to me that people would write it that way in a natural email conversation (what @MightyPork suggested initially):
It also matches visually how most people will want to style the thing. This syntax also makes a lot of sense with a |
I've implemented the syntax described above for a project I'm working on: If the last line of the block quote begins with
or
becomes <blockquote>
<p>It is the unofficial force—the Baker Street irregulars.</p>
<footer>Sherlock Holmes, Sign of Four</footer>
</blockquote> The contents of the footer are parsed for span-level markdown only. |
Here's my reservation with the |
I don't fully agree with the idea of adding a real dash in the output. Perhaps, if you want dash, at least make it optional. |
@MightyPork Instead of a simple em dash, the output could be |
Good idea, if this is going to be added, I'm cool with it :) |
👍 |
You often need to put a cite note into a blockquote.
Now while this works, it's nowhere as neat and readable as this
I am using this to do the trick
along with a bit of CSS
How about adding a support for the cite note into MarkdownExtra? Simply the last
> -- Something
will turn into<cite>
outside the last paragraph, but still inside the blockquote.The text was updated successfully, but these errors were encountered: