From 1b9287fcfb345aab4b31d7d6f4c0d330bd5e13f3 Mon Sep 17 00:00:00 2001 From: j-james Date: Thu, 23 Jun 2022 23:24:18 -0700 Subject: Basic HTML parsing and terminal rendering --- src/formats/html.nim | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 src/formats/html.nim (limited to 'src/formats') diff --git a/src/formats/html.nim b/src/formats/html.nim new file mode 100644 index 0000000..8724295 --- /dev/null +++ b/src/formats/html.nim @@ -0,0 +1,107 @@ +import std/[strutils, sequtils, sugar, tables] + +# Todo: +# - Handle implicit tags +# - Handle comments +# - Handle quoted attributes +# - Ignore <> in