From ecb24deb407ef76ef7cf7e9f0115060c98366a6b Mon Sep 17 00:00:00 2001 From: hylo Date: Wed, 4 Jan 2023 00:09:09 +0100 Subject: [PATCH] docs: org footnotes are not supported by github --- README.org | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index 26cba1f..8991303 100644 --- a/README.org +++ b/README.org @@ -14,13 +14,13 @@ When parsing and building TOML documents, guile-toml follows [[https://github.co | TOML | Guile | |----------------+---------------------| -| string | string [fn:0] | +| string | string [0] | | key-value pair | alist | | array | vector | | integer/float | real | | true | #t | | false | #f | -| datetime | SRFI-19 date [fn:1] | +| datetime | SRFI-19 date [1] | | nan | +nan.0 | | ±inf | ±inf.0 | @@ -29,9 +29,9 @@ To start using guile-toml: (use-modules (toml)) #+end_src -[fn:0] TOML's default behaviour for invalid UTF-8 is to fail, whereas [[https://www.gnu.org/software/guile/manual/html_node/Encoding.html][Guile's default behavior]] is to replace invalid UTF-8 with �. If you prefer TOML's behavior, use ~(set-port-conversion-strategy! (current-input-port) 'error)~. +[0]: TOML's default behaviour for invalid UTF-8 is to fail, whereas [[https://www.gnu.org/software/guile/manual/html_node/Encoding.html][Guile's default behavior]] is to replace invalid UTF-8 with the replacement character �. If you prefer TOML's behavior, use ~(set-port-conversion-strategy! (current-input-port) 'error)~. -[fn:1] TOML's ~time-local~ is parsed same as a ~datetime-local~ on the date of ~1970-01-01~. +[1]: TOML's ~time-local~ is parsed same as a ~datetime-local~ on the date of ~1970-01-01~. *** Reading TOML documents @@ -48,19 +48,15 @@ To start using guile-toml: - Basic ~toml->scm~ usage: #+begin_src scheme > (toml->scm "[a]\n b.c = \"hi world\"") -#+end_src -#+begin_src scheme (("a" ("b" ("c" . "hi world")))) #+end_src -- Read a TOML file and parse it (example[fn:2] from [[https://toml.io][toml.io]]): +- Read a TOML file and parse it (example from [[https://toml.io][toml.io]]): #+begin_src scheme > (use-modules (toml) (ice-9 textual-ports)) > (toml->scm (call-with-input-file "example.toml" get-string-all)) -#+end_src -#+begin_src scheme (("servers" ("beta" ("role" . "backend") ("ip" . "10.0.0.2")) ("alpha" @@ -79,7 +75,7 @@ To start using guile-toml: ("title" . "TOML Example")) #+end_src - [fn:2] +~example.toml~: #+begin_src toml # This is a TOML document