-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d138bb9
commit 5077fa2
Showing
2 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
tests/fixtures/fixtures/expected_output_divs_code_and_inline_code.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
65
tests/fixtures/fixtures/input_divs_code_and_inline_code.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)# | ||
|