🦓 Zebraw but in HTML world

Example

#zebraw-html(
  highlight-lines: (
    (3, [to avoid negative numbers]),
    (9, "50 => 12586269025"),
  ),
  lang: true,
  block-width: 100%,
  line-width: 100%,
  wrap: false,
  ```rust
  pub fn fibonacci_reccursive(n: i32) -> u64 {
      if n < 0 {
          panic!("{} is negative!", n);
      }
      match n {
          0 => panic!("zero is not a right argument to fibonacci_reccursive()!"), 0 => panic!("zero is not a right argument to fibonacci_reccursive()!"),
          1 | 2 => 1,
          3 => 2,
          _ => fibonacci_reccursive(n - 1) + fibonacci_reccursive(n - 2),
      }
  }
  ```,
)
rust
1
pub fn fibonacci_reccursive(n: i32) -> u64 {
2
    if n < 0 {
3
        panic!("{} is negative!", n);

> to avoid negative numbers

4
    }
5
    match n {
6
        0 => panic!("zero is not a right argument to fibonacci_reccursive()!"), 0 => panic!("zero is not a right argument to fibonacci_reccursive()!"),
7
        1 | 2 => 1,
8
        3 => 2,
9
        _ => fibonacci_reccursive(n - 1) + fibonacci_reccursive(n - 2),

> 50 => 12586269025

10
    }
11
}
1
pub fn fibonacci_reccursive(n: i32) -> u64 {
2
    if n < 0 {
3
        panic!("{} is negative!", n);

> to avoid negative numbers

4
    }
5
    match n {
6
        0 => panic!("zero is not a right argument to fibonacci_reccursive()!"), 0 => panic!("zero is not a right argument to fibonacci_reccursive()!"),
7
        1 | 2 => 1,
8
        3 => 2,
9
        _ => fibonacci_reccursive(n - 1) + fibonacci_reccursive(n - 2),

> 50 => 12586269025

10
    }
11
}
#zebraw-html(
  highlight-lines: (
    (3, [to avoid negative numbers]),
    (9, "50 => 12586269025"),
  ),
  lang: true,
  block-width: 100%,
  line-width: 100%,
  wrap: true,
  ```rust
  pub fn fibonacci_reccursive(n: i32) -> u64 {
      if n < 0 {
          panic!("{} is negative!", n);
      }
      match n {
          0 => panic!("zero is not a right argument to fibonacci_reccursive()!"),
          1 | 2 => 1,
          3 => 2,
          _ => fibonacci_reccursive(n - 1) + fibonacci_reccursive(n - 2),
      }
  }
  ```,
)
rust
1
pub fn fibonacci_reccursive(n: i32) -> u64 {
2
    if n < 0 {
3
        panic!("{} is negative!", n);

> to avoid negative numbers

4
    }
5
    match n {
6
        0 => panic!("zero is not a right argument to fibonacci_reccursive()!"),
7
        1 | 2 => 1,
8
        3 => 2,
9
        _ => fibonacci_reccursive(n - 1) + fibonacci_reccursive(n - 2),

> 50 => 12586269025

10
    }
11
}
1
pub fn fibonacci_reccursive(n: i32) -> u64 {
2
    if n < 0 {
3
        panic!("{} is negative!", n);

> to avoid negative numbers

4
    }
5
    match n {
6
        0 => panic!("zero is not a right argument to fibonacci_reccursive()!"),
7
        1 | 2 => 1,
8
        3 => 2,
9
        _ => fibonacci_reccursive(n - 1) + fibonacci_reccursive(n - 2),

> 50 => 12586269025

10
    }
11
}
#zebraw-html(
  highlight-lines: (
    (3, [to avoid negative numbers]),
    (9, "50 => 12586269025"),
  ),
  numbering: false,
  lang: true,
  block-width: 100%,
  line-width: 100%,
  wrap: true,
  ```typst
  = Fibonacci Reccursive Function
  
  This function calculates the Fibonacci number at the given index using a recursive approach.
  ```,
)
typst

                  
= Fibonacci Reccursive Function

                  


                  
This function calculates the Fibonacci number at the given index using a recursive approach.

> to avoid negative numbers


                  
= Fibonacci Reccursive Function

                  


                  
This function calculates the Fibonacci number at the given index using a recursive approach.

> to avoid negative numbers