markdown icon indicating copy to clipboard operation
markdown copied to clipboard

Should tabbed code blocks allow an unclosed code block?

Open kellyjosephprice opened this issue 5 years ago • 3 comments

The commonmark spec allows an unclosed code block to extend to the end of the doc. I think we allowed this until #70, but didn't have a test for it?

kellyjosephprice avatar Nov 18 '20 18:11 kellyjosephprice

Interesting. So what's the behavior now post-#70? Will it close the code block at the first line break? Or the next block component?

rafegoldberg avatar Nov 19 '20 15:11 rafegoldberg

It won't match the block at all.

  ` ` `
  "will just be a regular code block"
  ` ` `
  ` ` `
  ` ` `
  tab 1
  ` ` `
  ` ` `
  tab 2
  ` ` `
  ` ` `
  Back to regular formatting

kellyjosephprice avatar Nov 19 '20 17:11 kellyjosephprice

Updates, the second trailing-unclosed code block is now parsed as a code block, but not part of the tabs.

kellyjosephprice avatar Feb 27 '23 17:02 kellyjosephprice