Skip to content

Commit

Permalink
add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGreenup committed Oct 29, 2024
1 parent d138bb9 commit 5077fa2
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Heading

## Details Boxes

This is some text

this latent will be preserved:
:::

<div role="alert" class="alert alert-info">

Some content

</div>

A trailing block:

</div>

Some other text


<div class="alert alert-info">

More content

<div class="tip">

This is nested

</div>

</div>

A latent block
</div>

## Code Blocks

### Hidden


### Display

<div class="rhai-display">
```rust
let t = "";
for i in 1..s {
t += i;
if i != (s-1) {
t += " + ";
}
}
t
```
<div class="rhai-out">
```
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44
```
</div>
</div>

### Inline Code

The sum of the first 10 numbers is 45 all together that is: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44
65 changes: 65 additions & 0 deletions tests/fixtures/fixtures/input_divs_code_and_inline_code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Heading

## Details Boxes

This is some text

this latent will be preserved:
:::

:::alert

Some content

</div>

A trailing block:

:::

Some other text


:::info

More content

:::tip

This is nested

</div>

</div>

A latent block
:::

## Code Blocks

### Hidden

```{rhai}
let s = 0;
for i in 1..10 {
s += i;
}
```

### Display

```{rhai-display}
let t = "";
for i in 1..s {
t += i;
if i != (s-1) {
t += " + ";
}
}
t
```

### Inline Code

The sum of the first 10 numbers is λ#(s)# all together that is: λ#(t)#

0 comments on commit 5077fa2

Please sign in to comment.