2be56ee Rendering.Render_HTML: add option to lazy load images
~nytpu pushed to ~nytpu/gemroff git
2da2fd8 Rendering.Render_HTML: add option to lazy load images
~nytpu pushed to ~nytpu/gemroff git
Gemroff is a line-based markup language taking heavy inspiration from Gemtext and Roff. Gemroff is designed as a format that is rarely rendered directly, rather you write Gemroff markup and convert it to any of a wide variety of output formats.
gemroff.conf.sample
(Markdown versions of man pages generated by mandoc(1), expect some weird conversion issues. The man pages work great so I'd recommend directly using those.)
First clone the repository:
git clone https://git.sr.ht/~nytpu/gemroff && cd gemroff
If you already have an Ada toolchain installed, or are on a *nix distribution with a functional Ada toolchain available (to my knowledge, currently Arch Linux & derivatives, Debian, and Fedora) then it is highly recommended that you build manually.
If you are on Windows, Mac OS, *BSD, or any Linux distribution without good Ada packages, then building with Alire may be much more convenient as it manages toolchains and libraries for you independent of the package manager (if your system has a package manager at all).
git submodule update --init --recursive
make
make test # optional
sudo make install
You may also use plain
gprbuild
and
gprinstall
commands rather than the convenience makefile.
alr build
alr action test # optional
sudo make alire-install
Alternately,
you may manually copy
bin/gemroff
to your desired location within your
PATH
The upstream URL of this project is https://git.sr.ht/~nytpu/gemroff. Send suggestions, bugs, patches, and other contributions to ~nytpu/public-inbox@lists.sr.ht or alex@nytpu.com. For help sending a patch through email, see https://git-send-email.io. You can browse the list archives at https://lists.sr.ht/~nytpu/public-inbox.
If you aren't comfortable sending a patch through email, get in touch with a link to your repo and I'll pull the changes down myself!
"
) in links when embedding them in
HTML and other formats, links should be properly percent-encoded in the source textgemroff -o a.txt -o b.txt -o c.txt
),
then a later flag overrides the prior flag as expected,
but all of the output files are opened and promptly closed again,
creating empty files if they don't exist and truncating existing files.Copyright (C) 2021-2024 nytpu <alex [at] nytpu.com>.
Licensed under the terms of the GNU Affero General Public License, version 3. You can view a copy of the GNU AGPL in LICENSE or at https://www.gnu.org/licenses/agpl-3.0.html.
The gemtext(5) man page, gemroff.vim, is_gemtext_gemroff.awk, and gemroff.conf.sample are dedicated to the public domain under the terms of the CC0 1.0 Universal Public Domain Dedication. You can view a copy of the CC0 1.0 in COPYING.CC0 or at https://creativecommons.org/publicdomain/zero/1.0/.