Bug 19814 – Nested code blocks in Ddoc break formatting
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-04-20T17:22:04Z
Last change time
2019-04-21T04:50:25Z
Assigned to
No Owner
Creator
David Gileadi
Comments
Comment #0 by gileadis — 2019-04-20T17:22:04Z
This bug is caused by the Markdown support I recently added. It happens regardless of whether the -preview=markdown flag is passed to the compiler. A test case, from ddoc.dd (the test case includes the outside code fences):
------------------------------------
/**
* Examples:
* --------------------
* writeln("3"); // writes '3' to stdout
* --------------------
*/
------------------------------------
This should render as one code example with a documentation comment inside it that itself describes a code example. Instead, it renders as two code examples with an oddly formatted "writeln" between them.
I have a fix prepared.