fletcher / MultiMarkdown

Expanded perl version of John Gruber's original Markdown --- No longer under active development since MMD 3
http://fletcherpenney.net/multimarkdown/
1.06k stars 530 forks source link

blockquote syntax is ignored in the cells #48

Closed Oleksiy-Yakovenko closed 10 years ago

Oleksiy-Yakovenko commented 10 years ago

Hello.

According to multimarkdown documentation:

You can use normal Markdown markup within the table cells.

but when i try this:

|col1 |col2 |
|:---|:---|
|>hello|blockquote|

i get this output (> is converted to >):

col1 col2
>hello blockquote

(github does the same as multimarkdown)

is there any other way to indent content in table cells, or any chance this issue will get fixed?

fletcher commented 10 years ago

Blockquotes are block level elements. They can't be used inside span level elements like a table cell.

F

Oleksiy-Yakovenko commented 10 years ago

Are you absolutely sure about that? Even paragraphs and divs are valid inside table cells, why not blockquote? Google chrome displays them fine in table cells, and I believe it's perfectly valid at least with HTML5.

I cannot find any rules in the HTML5 spec which forbid embedding

inside of .

On the unofficial side of things, there's the table showing which elements can be nested, and td clearly is allowed to nest content-flow elements, which blockquote is one of.

fletcher commented 10 years ago

resolve

Blockquotes are block level elements. They can't be used inside span level elements like a table cell.

Fletcher

On 6/23/14, 12:26 PM, Alexey Yakovenko wrote:

Hello.

According to multimarkdown documentation:

|You can use normal Markdown markup within the table cells.|

but when i try this:

col1 col2
>hello blockquote

i get this output (|>| is converted to |>|):

/Property:/ /Function:/

hello blockquote

(github does the same as multimarkdown)

is there any other way to indent content in table cells, or any chance this issue will get fixed?

— Reply to this email directly or view it on GitHub https://github.com/fletcher/MultiMarkdown/issues/48.

Fletcher T. Penney fletcher@fletcherpenney.net

Oleksiy-Yakovenko commented 10 years ago
col1 col2
Thanks for replying and the nice attitude.
And have a nice day
fletcher commented 10 years ago

Markdown blocks, not HTML blocks.

F

Sent from my iPhone

On Jun 23, 2014, at 3:21 PM, Alexey Yakovenko notifications@github.com wrote:

Are you absolutely sure about that? Even paragraphs and divs are valid inside table cells, why not blockquote? Google chrome displays them fine in table cells, and I believe it's perfectly valid at least with HTML5.

I cannot find any rules in the HTML5 spec which forbid embedding

inside of .

On the unofficial side of things, there's the table showing which elements can be nested, and td clearly is allowed to nest content-flow elements, which blockquote is one of.

— Reply to this email directly or view it on GitHub.

fletcher commented 10 years ago

Looks like one of my comments that was delayed and presumed lost was subsequently accepted, hence the repetition...

Anyways, since things seem to be out of order above, to clarify. I understand that HTML allows almost anything inside a table cell, but Markdown (and therefore MultiMarkdown) does not.

F-

Oleksiy-Yakovenko commented 10 years ago

Yeah, I understood that after your previous post. Thanks for clarification. Although it's strange that you can't change that, since original markdown has neither tables, nor formal standard.

fletcher commented 10 years ago

Markdown does specify a distinction between block level and span level elements. I'm sure if you think it through, you'll realize why allowing block level elements inside a table cell won't work within MultiMarkdown. If you want complicated tables, you'll need to hand code them.

http://daringfireball.net/projects/markdown/syntax

Oleksiy-Yakovenko commented 10 years ago

I'll just tell the users to use

tag directly -- it works in multimarkdown tables. Just hoped it might be easy to get ">" syntax working.

fletcher commented 10 years ago

Not if they use multiline block quotes it won't....

Oleksiy-Yakovenko commented 10 years ago

Single-line is good enough for our use case