From d587b5001d6e71231e13de57ad7fbcbfc9f94b1c Mon Sep 17 00:00:00 2001 From: Talon Poole Date: Fri, 29 Jan 2021 18:51:53 +0000 Subject: [PATCH] document gmi.css --- Makefile | 19 ++++----- README.md | 99 +++++++++++++++++++++++++++++++---------------- gmi.css.5 | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++ gmi.css.5.scd | 91 +++++++++++++++++++++++++++++++++++++++++++ package.json | 5 ++- to-html.js | 2 +- 6 files changed, 277 insertions(+), 43 deletions(-) create mode 100644 gmi.css.5 create mode 100644 gmi.css.5.scd diff --git a/Makefile b/Makefile index 3769455..7bfb628 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,18 @@ -PREFIX=/usr/local -INSTALLDIR=$(DESTDIR)$(PREFIX) +build: format gmi.min.css gmi-web.1 gmi.css.5 + +gmi-web.1: gmi-web.1.scd + scdoc < $< > $@ + +gmi.min.css: gmi.css + cat $< | ./node_modules/minify/bin/minify.js --css > $@ + +gmi.css.5: gmi.css.5.scd + scdoc < $< > $@ format: ./node_modules/prettier/bin-prettier.js --write gmi.css ./node_modules/prettier/bin-prettier.js --write *.js !*.min.js -gmi.min.css: gmi.css - cat $< | ./node_modules/minify/bin/minify.js --css > $@ - -gmi-web.1: gmi-web.1.scd - scdoc < $< > $@ - -build: format gmi.min.css gmi-web.1 clean: rm -rf gmi.min.* gmi-web.1 diff --git a/README.md b/README.md index 09bf146..d811c6e 100644 --- a/README.md +++ b/README.md @@ -4,55 +4,63 @@ # HTML spec -Due to the ambiguity of HTML several translations from Gemini exist in the wild. I propose the following standard: - -``` -
  • ↔ * -
    ↔ > -
              ↔ ```
    -            ↔ =>
    -       ↔ #[##]
    -

    -``` - -The `` for a link should be presented without any parent elements. Many implementations use `

    ` to enforce "block" styling as opposed to the default "inline" which renders the link next to the previous block instead of below it. But the nested markup adds an unnecessary layer of indirection in semantics and when parsing. `` has the same effect (gmi.css uses this). - -Empty lines should simply be represented as `


    ` this sets up `contenteditable=true` to add content to the line compared to just `
    `. - -Much like the lines of a `
    `, the lines of `
  • list items
  • ` need to be wrapped in `