feat: use pandoc with gfm

This commit is contained in:
dusk 2021-05-17 18:01:33 +03:00
parent 1861da658e
commit 53f2090447
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
3 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,3 @@
# About
testy test
testy test asd

View File

@ -1,7 +1,9 @@
###### another document
fn main() {
println!("main");
}
```rust
fn main() {
println!("main");
}
```
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur condimentum felis risus, ac tempor eros mollis ac. Curabitur dictum justo magna, a tristique nibh euismod at. Nullam at laoreet quam, a facilisis massa. Vestibulum iaculis euismod lorem non consequat. Quisque elementum pharetra egestas. Mauris in enim facilisis, pretium lacus vitae, accumsan diam. Praesent ut finibus mauris, eget iaculis lorem. Cras pharetra lectus varius, volutpat odio sit amet, pulvinar lectus. Aliquam malesuada erat a enim rutrum viverra. Nullam blandit nec enim eu egestas. Duis venenatis aliquet cursus. Phasellus non posuere lectus, sed rhoncus mi. Quisque ut ornare dui. Ut eget elit ac leo aliquam aliquam.

View File

@ -25,7 +25,7 @@ let
parseMarkdown = name: contents:
pkgs.runCommand name { } ''
printf "${contents}" | ${pkgBin "lowdown"} -o $out -
printf '${contents}' | ${pkgBin "pandoc"} -f gfm > $out
'';
in
{