jbt / docker

Documentation generator
http://jbt.github.com/docker
MIT License
234 stars 56 forks source link

Line break in <pre><code> examples #92

Open gtsiokos opened 8 years ago

gtsiokos commented 8 years ago

I'm trying to add some method usage examples using multi-line comments, the following approaches don't work as expected.


/*
* #### example 1
* <pre><code>
* // snippet 1
* 
* // snippet 2
* </code></pre>
*/

The compiled docs will show snippet 2 outside the <pre><code> example.


/*
* #### example 2
* <pre><code>
* // snippet 1
* <br>
* // snippet 2
* </code></pre>
*/

The compiled docs will not highlight the code, showing a regular pre tag.

Do i miss something or is this a bug?