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 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/gui/terminal.nim | 35 +++++++++++++++++ src/html.nim | 30 --------------- 3 files changed, 142 insertions(+), 30 deletions(-) create mode 100644 src/formats/html.nim create mode 100644 src/gui/terminal.nim delete mode 100644 src/html.nim (limited to 'src') 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