Skip to content

Commit

Permalink
add head and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
WangRongsheng committed Sep 13, 2024
1 parent 51d0521 commit 47ccbe0
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- Powered by https://cj.rs/riss -->
<!-- insert
---
title: "My Page Title"
date: "2222-11-11"
---
end_insert -->

<!-- remove -->
Present in the .md, removed in the output
<!-- end_remove -->

**kept**
Present in both the .md and the output

<!-- insert
**inserted**
only in the output
end_insert -->

<!-- insert
some complicated html
<script id="asciicast-427156" src="https://asciinema.org/a/427156.js" async></script>
end_insert -->

This gets escaped:
```html
<!-- remove -->
```

21 changes: 21 additions & 0 deletions test_output.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- Powered by https://cj.rs/riss -->
---
title: "My Page Title"
date: "2222-11-11"
---


**kept**
Present in both the .md and the output

**inserted**
only in the output

some complicated html
<script id="asciicast-427156" src="https://asciinema.org/a/427156.js" async></script>

This gets escaped:
```html
<!-- remove -->
```

0 comments on commit 47ccbe0

Please sign in to comment.