digitalmars.D.bugs - [Issue 22230] New: Markdown trailing list breaks unittest example
- d-bugmail puremagic.com (52/52) Aug 21 2021 https://issues.dlang.org/show_bug.cgi?id=22230
https://issues.dlang.org/show_bug.cgi?id=22230 Issue ID: 22230 Summary: Markdown trailing list breaks unittest example Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: zan77137 nifty.com When the following code is used for document generation, the generated HTML layout will be broken: ------------------------------- /++ Test - test +/ unittest { // test } ------------------------------- $ dmd -D -c -o- .\source\unittests_example.d The following is a well-formed version of the relevant section: ------------------------------- <div class="ddoc_examples"> <h4>Examples</h4> <p class="para"> Test <ul> <li>test <section class="code_listing"> <div class="code_sample"> <div class="dlang"> <ol class="code_lines"> <li><code class="code"><span class="comment">// test</span></code></li> </ol> </div> </div> </section> </li> </ul> </p> </div> ------------------------------- The `<section class="code_listing">...</section>` above must come after the `</li></ul>`. --
Aug 21 2021