diff --git a/Makefile b/Makefile index 57acee3..3769455 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ PREFIX=/usr/local INSTALLDIR=$(DESTDIR)$(PREFIX) -MANDIR=$(INSTALLDIR)/share/man format: ./node_modules/prettier/bin-prettier.js --write gmi.css @@ -12,11 +11,9 @@ gmi.min.css: gmi.css gmi-web.1: gmi-web.1.scd scdoc < $< > $@ -install: gmi.min.css gmi-web.1 - sudo npm link - install -Dm644 gmi-web.1 $(MANDIR)/man1/gmi-web.1 +build: format gmi.min.css gmi-web.1 clean: rm -rf gmi.min.* gmi-web.1 -.PHONY: install clean +.PHONY: install clean format diff --git a/README.md b/README.md index 5db0467..d0a1b80 100644 --- a/README.md +++ b/README.md @@ -8,48 +8,35 @@ Check out the annotated [example.html](https://gmi.eattherich.club/example.html) 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 `
`. + ### inline media Optionally, if a link is consumable by ``, `