File: main.rs

package info (click to toggle)
rust-termimad 0.34.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,080 kB
  • sloc: sh: 2; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use termimad::*;

static MD: &str = r#"
# Indented Code

To indent code (as demonstrated here) do this:

```rust
fn main() {
    let mut skin = MadSkin::default();
    skin.code_block.left_margin = 4;
    skin.print_text(MD);
}
```

Note that you can add some margin to other kinds of lines, not just code blocks.

"#;

fn main() {
    let mut skin = MadSkin::default();
    skin.code_block.left_margin = 4;
    skin.print_text(MD);
}