about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAli Fardan <raiz@stellarbound.space>2021-01-18 22:52:46 +0300
committerAli Fardan <raiz@stellarbound.space>2021-01-18 22:52:46 +0300
commit7895744f6eca038bea3eb472391cae3195e99834 (patch)
treebbd212682cab4a7bd21ed3824fc5e6b8da3029be
parenta93b7d369d465ea6ae650c55550590500efa6577 (diff)
downloadlibgemtext-7895744f6eca038bea3eb472391cae3195e99834.tar.gz
gemtext_encode: update manpage CAVEATS section to note about HTML encoder
-rw-r--r--README6
-rw-r--r--gemtext_encode.310
2 files changed, 11 insertions, 5 deletions
diff --git a/README b/README
index addca19..070b996 100644
--- a/README
+++ b/README
@@ -11,6 +11,7 @@ gemtext_encode(3) -- for the encoder and its wrappers
 gemtext_type(3) -- examining the parsed object type
 gemtext_text_new(3) -- creating a new object
 gemtext_text_string(3) -- accessing the underlying object string
+gemtext_text_strlen(3) -- strlen(3) equivalent for gemtext objects
 gemtext_list_append(3) -- adding items to gemtext lists
 gemtext_free(3) -- free()'ing struct gemtext* after use
 
@@ -76,11 +77,6 @@ Create text/gemini document and print to /dev/stdout
 		return 0;
 	}
 
-TODO
-====
-- write more tests
-- add functions allowing for more flexible use of struct gemtext** lists
-
 LICENSE
 =======
 GPLv3, see LICENSE
diff --git a/gemtext_encode.3 b/gemtext_encode.3
index 28fb5cc..c08f1ca 100644
--- a/gemtext_encode.3
+++ b/gemtext_encode.3
@@ -146,6 +146,16 @@ and
 will append
 .Em LF
 character after each object in the list, including the last.
+.Pp
+.Fn gemtext_list_encode_to_html ,
+.Fn gemtext_list_encode_to_html_fd
+and
+.Fn gemtext_list_encode_to_html_file
+will only convert each gemtext line to the corresponding HTML tag, output could be modified later to add opening and closing
+.Em html
+and
+.Em body
+tags along with other metadata.
 .Sh SEE ALSO
 .Xr gemtext_decode 3 ,
 .Xr gemtext_text_new 3 ,