diff options
Diffstat (limited to 'test.ht')
-rw-r--r-- | test.ht | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/test.ht b/test.ht index 0208568..97425a9 100644 --- a/test.ht +++ b/test.ht | |||
@@ -1,27 +1,32 @@ | |||
1 | # a test | 1 | # ht: a bespoke document preparation system |
2 | 2 | ||
3 | here's a test for ht.awk. | 3 | ;; comments are like this. |
4 | it's got paragraphs (these bad boys), long lines and such, and also raw blocks. | 4 | ;; they're a good time. |
5 | => https://example.com and links! | ||
6 | 5 | ||
7 | >>> | 6 | `ht |
8 | rawblock example1: all of them, & more <hi!> | 7 | is a quasi-line-based markup language that takes inspiration from |
9 | ## fee fi fo fum | 8 | @https://gemini.circumlunar.space/docs/gemtext.gmi gemtext\ |
10 | <<< | 9 | , |
10 | @https://daringfireball.net/projects/markdown/ markdown\ | ||
11 | , and others. | ||
12 | Its aim is to be somewhat easy to read while being fairly easy to parse. | ||
11 | 13 | ||
12 | ## just html | 14 | In fact, |
13 | but over two lines | 15 | `ht |
16 | is a simple awk script. | ||
14 | 17 | ||
15 | >>> html | 18 | ## Usage |
16 | rawblock example2: just html | ||
17 | hey adora | ||
18 | <<< | ||
19 | 19 | ||
20 | ### not html | 20 | - one |
21 | - two | ||
22 | - three | ||
21 | 23 | ||
22 | >>> -html | 24 | ordered list: |
23 | rawblock example3: everything /but/ html | ||
24 | # with a header inside, blah | ||
25 | <<< | ||
26 | 25 | ||
27 | and finally, the end of the file. | 26 | % one |
27 | % two | ||
28 | % three | ||
29 | |||
30 | ``` | ||
31 | ./ht.awk source.ht | ||
32 | ``` | ||