Okay, that's enough progress for today on the rewrite of my #AsciiDoc to #GemText conversion pipeline.
Added a pre-processor that allows me to add ,gemini=hidden
to links I don't want to show up in the gmi document, and ,gemini=extend-to-eol
for links I want to extend to the end of the line.
I don't expect others to find this useful, but so far it looks like it will help reduce link clutter in #gemini documents, without having to handcraft a #gmi version of the same blog post.
@DuncanLock https://git.sr.ht/~fixato/gemini-tools but it's been a while since I last pushed changes and it's fairly undocumented.
@FiXato I got this working like this:
$ git clone https://git.sr.ht/~fixato/gemini-tools
$ cd gemini-tools/
$ python3 -m venv ~/venv/gemini-tools
$ source ~/venv/gemini-tools/bin/activate
$ python -m pip install -r ./requirements.txt
then:
$ python -m pip install xdg python-slugify md2gemini
.. and it seems to work pretty well! Thanks!
@DuncanLock yeah, that sounds about right :)
Reminds me that I need to add those last two packages to the requirements.txt :)
Sorry I haven't been able to add the latest changes yet though; haven't really had the headspace to code much the past couple of days :/