[Issue 19814] New: Nested code blocks in Ddoc are break formatting
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 20 17:22:04 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19814
Issue ID: 19814
Summary: Nested code blocks in Ddoc are break formatting
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: gileadis at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list