LuxDL / DocumenterVitepress.jl

Documentation with Documenter.jl and VitePress
https://luxdl.github.io/DocumenterVitepress.jl/
MIT License
63 stars 9 forks source link

`@repl` output rendering woes #108

Closed thofma closed 3 months ago

thofma commented 3 months ago

Thanks for https://github.com/LuxDL/DocumenterVitepress.jl/pull/104! I did some more testing and noticed that DV is confused when output is suppressed with ; or contains #. For example

```@repl
1 + 1;
1 + 2;
[1, 2]
1 + 3
1 + 1; # hide
1 + 2;
[1, 2]
1 + 4

gets rendered as

<img width="789" alt="Screenshot 2024-04-03 at 08 49 27" src="https://github.com/LuxDL/DocumenterVitepress.jl/assets/11231648/498a4d3c-9fd2-4920-90f1-20aa522c384b">
Note that there are superfluous newlines at the beginning and missing newlines in between.

The HTML writer handles this (a bit) better:

<img width="836" alt="Screenshot 2024-04-03 at 08 56 02" src="https://github.com/LuxDL/DocumenterVitepress.jl/assets/11231648/dd3985cb-623d-4ea9-aba4-e0640591975f">
thofma commented 3 months ago

Fixed by #111