From 1c8e5f1ca9bf0eb6dad8a62bc87428610d96c350 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 3 Aug 2022 23:36:07 -0500 Subject: Begin anew I think this might really be something! --- test.ht | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) (limited to 'test.ht') diff --git a/test.ht b/test.ht index 0208568..97425a9 100644 --- a/test.ht +++ b/test.ht @@ -1,27 +1,32 @@ -# a test +# ht: a bespoke document preparation system -here's a test for ht.awk. -it's got paragraphs (these bad boys), long lines and such, and also raw blocks. -=> https://example.com and links! +;; comments are like this. +;; they're a good time. ->>> -rawblock example1: all of them, & more -## fee fi fo fum -<<< +`ht +is a quasi-line-based markup language that takes inspiration from +@https://gemini.circumlunar.space/docs/gemtext.gmi gemtext\ +, +@https://daringfireball.net/projects/markdown/ markdown\ +, and others. +Its aim is to be somewhat easy to read while being fairly easy to parse. -## just html -but over two lines +In fact, +`ht +is a simple awk script. ->>> html -rawblock example2: just html -hey adora -<<< +## Usage -### not html +- one +- two +- three ->>> -html -rawblock example3: everything /but/ html -# with a header inside, blah -<<< +ordered list: -and finally, the end of the file. +% one +% two +% three + +``` +./ht.awk source.ht +``` -- cgit 1.4.1-21-gabe81