Swift playground rendered markup fails when /* */ style comments are inside markdown code blocks

Number:rdar://28589211 Date Originated:Oct 3 2016
Status:open Resolved:
Product:Xcode Product Version:Version 8.0 (8A218a)
Classification:serious bug Reproducible:always
Playground rendered markup (markdown) allows you to display code blocks such as:

var x: Int = 0

However, if /* */ style comments are within a code block, then Playgrounds fail to render the markup properly.

var x: Int = 0 /* this comment breaks playground rendering */

Steps to Reproduce:
Open the attached project. 

You can also find it at: 

Open swift-proposal-analyzer.playground.

This playground contains all Swift Evolution Proposals as playground pages. Open the playground page for SE-0037.

Note that rendering fails at line 77 because of the /* comment */ in the code block.

Expected Results:
The code block within ``` should render proper markdown and not break playground rendering.

Actual Results:
Playground markup rendering is broken.

Version 8.0 (8A218a)



'swift-proposal-analyzer-master.zip' was successfully uploaded.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!