Playground Markdown Parser Bug

Originator:mkchoi212
Number:rdar://36184289 Date Originated:12/21/2017
Status:Open Resolved:
Product:Swift Playgrounds Product Version:Xcode Version 9.2 (9C40b)
Classification:Bug Reproducible:Yes
 
Summary:
When a Markdown comment block is not closed properly, Xcode crashes when the user attempts to toggle off the `Render Documentation` option.

Steps to Reproduce:
Create a Markdown comment block as such

   /*:
      comments here

 >> Notice how the block is NOT closed off properly

Toggle the `Render Documentation` option repeatedly. 

Expected Results:
Xcode should provide a warning and or suggest a fix.

Actual Results:
The application crashes when the user attempts to toggle `Render Document` from On to Off.

Version/Build:
Xcode Version 9.2 (9C40b)

Configuration:
MacBook Pro (13-inch, 2016, Two Thunderbolt 3 ports)
Comments

Comments


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!